euler/001/001.py

7 lines
110 B
Python
Raw Normal View History

total = 0
for x in range(1000):
if (0 == x % 3) or (0 == x % 5):
total = total + x
print 'Answer', total