Skip to content

Instantly share code, notes, and snippets.

@rcampbell
Created December 30, 2009 22:11
Show Gist options
  • Save rcampbell/266447 to your computer and use it in GitHub Desktop.
Save rcampbell/266447 to your computer and use it in GitHub Desktop.
Project Euler solutions in Haskell
{- -}
-- Problem 1
foldr (+) 0 (filter (\n -> mod n 3 == 0 || mod n 5 == 0) [1..1000])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment