MA0301/exercise9/scripts/ex10.hs

8 lines
181 B
Haskell
Raw Permalink Normal View History

2021-05-03 01:06:04 +02:00
main :: IO ()
main = print
$ length
$ [a | a <- [0..2000],
a `mod` 2 /= 0,
a `mod` 3 /= 0,
a `mod` 5 /= 0,
a `mod` 7 == 0]