Created
November 12, 2013 21:25
-
-
Save bruce-szalwinski/7439012 to your computer and use it in GitHub Desktop.
Multiples of 3 and 5, http://projecteuler.net/problem=1
This file contains hidden or 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
(reduce (fn [a b] (+ a b)) | |
(map (fn [x] (if | |
(or | |
(zero? (mod x 3 )) | |
(zero? (mod x 5))) | |
x 0)) | |
(range 1 1000))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment