Skip to content

Instantly share code, notes, and snippets.

@cmoore
Created June 17, 2009 19:04
Show Gist options
  • Save cmoore/131428 to your computer and use it in GitHub Desktop.
Save cmoore/131428 to your computer and use it in GitHub Desktop.
p1 :: Int
p1 = sum $ nub $
filter (\x -> x `mod` 3 == 0) [1..999] ++
filter (\x -> x `mod` 5 == 0) [ 1..999 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment