This repository has been archived on 2024-01-26. You can view files and clone it, but cannot push or open issues or pull requests.
project-euler/e0001/euler0001.hs
2017-12-15 18:17:11 +01:00

5 lines
125 B
Haskell

main :: IO()
main = do
print (sum multiples)
where
multiples = [x | x <- [3..999], (mod x 3 == 0) || (mod x 5 == 0)]