euler/haskell/euler001.hs

5 lines
95 B
Haskell
Raw Normal View History

2020-10-27 05:29:30 +00:00
module Main where
main = do
2020-10-27 07:53:01 +00:00
print $ sum [x | x <- [1..999], mod x 3 == 0 || mod x 5 == 0]