Skip to content

Instantly share code, notes, and snippets.

@omegatakuma
Created June 23, 2012 05:48
Show Gist options
  • Save omegatakuma/2977053 to your computer and use it in GitHub Desktop.
Save omegatakuma/2977053 to your computer and use it in GitHub Desktop.
[Gauche]内包表記で100以下の素数を求める
(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