Created
October 22, 2010 13:18
-
-
Save takuma7/640516 to your computer and use it in GitHub Desktop.
Project Euler - Problem 1
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
import System.IO | |
main = do | |
putStrLn $ show $ sum $ filter judge [1..999] | |
judge a | a `mod` 3 == 0 || a `mod` 5 == 0 = True | |
| otherwise = False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment