public
Created

Project Euler - Problem 1

  • Download Gist
euler-001.hs
Haskell
1 2 3 4 5
result = sum
$ filter
(\x -> x `multipleOf` 3 || x `multipleOf` 5)
[1..999]
where x `multipleOf` n = x `mod` n == 0

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.