SICP-answers
SICP-answers copied to clipboard
1.28的题解有问题
非平凡平方根的检测是针对每次要square的那个值,而不是一直是a。
可参考下面的实现: https://github.com/ajkitson/sicp/blob/master/ch1/1.28.scm https://github.com/kenspirit/SICP/blob/master/c-1/1.28-miller-rabin-test.md http://community.schemewiki.org/?sicp-ex-1.28