x = 0for i in range(1,1001): if i % 7 != 0 and i %3 !=0 and i %5 != 0: x = x+1print x
Standard input is empty
457
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!