Created
September 12, 2011 21:51
-
-
Save mresetar/1212573 to your computer and use it in GitHub Desktop.
euler problem one
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
int sum | |
(1..999).each { int i -> sum += i%3==0 ? i : i%5==0 ? i:0 } | |
print sum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment