This repository has been archived on 2024-01-26. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
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)]