main = print (length (filter f [1..1996])) where f x = or [ x`mod`k == 0 | k <- [4,6,10] ]
Standard input is empty
732
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!