Last active
December 19, 2015 06:19
-
-
Save jewel12/5910632 to your computer and use it in GitHub Desktop.
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
; Project Euler 1 | |
(defn multiple-numbers-of-3-or-5 [] | |
(defn whole-numbers [] (iterate inc 1)) | |
(defn multiple-of-3-or-5? [x] | |
(if (or (zero? (rem x 3)) | |
(zero? (rem x 5))) | |
true false)) | |
(filter multiprable? (whole-numbers))) | |
(take-while #(> 1000 %) (multiple-numbers-of-3-or-5)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment