SICP-answers icon indicating copy to clipboard operation
SICP-answers copied to clipboard

1.28的题解有问题

Open jiakai0419 opened this issue 8 years ago • 0 comments

非平凡平方根的检测是针对每次要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

jiakai0419 avatar Sep 25 '16 17:09 jiakai0419