Created
June 23, 2012 05:48
-
-
Save omegatakuma/2977053 to your computer and use it in GitHub Desktop.
[Gauche]内包表記で100以下の素数を求める
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(filter (lambda(x)x)(list-ec (: m 1 (+ 100 1))(and(equal? (filter (lambda(x)x) (list-ec (: x 1 (+ m 1))(and (= (mod m x) 0) x))) (list 1 m))m))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment