Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Main where
- multipleOf3or5 x
- | mod x 5 == 0 = x
- | mod x 3 == 0 = x
- | otherwise = 0
- euler1 = sum $ map multipleOf3or5 $ [1..999]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement