Skip to content

Instantly share code, notes, and snippets.

@takuma7
Created October 22, 2010 13:18
Show Gist options
  • Save takuma7/640516 to your computer and use it in GitHub Desktop.
Save takuma7/640516 to your computer and use it in GitHub Desktop.
Project Euler - Problem 1
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