{"type":"rich","title":"\u554f\u984c1-24","author_url":"https://blog.hatena.ne.jp/kiririmode/","version":"1.0","published":"2007-10-06 00:00:01","width":"100%","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkiririmode.hatenablog.jp%2Fentry%2F20071006%2Fp2\" title=\"\u554f\u984c1-24 - \u7406\u7cfb\u5b66\u751f\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","author_name":"kiririmode","image_url":null,"provider_name":"Hatena Blog","blog_title":"\u7406\u7cfb\u5b66\u751f\u65e5\u8a18","description":"\u30d5\u30a7\u30eb\u30de\u30fc\u30c6\u30b9\u30c8\u3067\u7d20\u6570\u5224\u5b9a\u306f\u306f\u3084\u304f\u306a\u308b\u3002 (use srfi-19) (use srfi-27) (define (even? n) (= (remainder n 2) 0)) (define (square x) (* x x)) (define (fermat-test n) (define (try-it a) (= (expmod a n n) a)) (try-it (+ 1 (random-integer (- n 1))))) (define (fast-prime? n times) (cond ((= times 0) #t) ((fermat-test n) (fast-\u2026","url":"https://kiririmode.hatenablog.jp/entry/20071006/p2","categories":["SICP"],"blog_url":"https://kiririmode.hatenablog.jp/"}