Created
June 22, 2013 14:20
-
-
Save boxp/5841042 to your computer and use it in GitHub Desktop.
clojureでproject-eulerに挑戦 〜五問目〜
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
(defn coll-divides? [x coll] | |
(every? true? (filter #(not= (mod x %) 0) coll))) | |
(loop [x 20] | |
(if (coll-divides? x (range 1 21)) | |
x | |
(recur (+ x 10))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment