Created
February 6, 2015 16:36
-
-
Save sanatgersappa/e2c7f19c5461cbf4452b 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
(defn relevant? [n] | |
"returns true if n is divisible by 3 or 5" | |
(or (= 0 (rem n 3)) (= 0 (rem n 5)))) | |
(reduce + (filter relevant? (range 1000))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment