S = 0for x in range(1, 500): if x % 2 != 0 and x % 3 == 0: S = S + xprint(S)
Standard input is empty
20667
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!