Files
project-euler/problem_1.py
MitchellHansen 6d6ae816eb Initial commit
Changes to be committed:
	new file:   problem_1.py
        new file:   problem_2.py
	new file:   problem_3.py
2016-01-21 23:46:58 -08:00

14 lines
135 B
Python

import math
sum = 0
for x in range(0, 1000):
if x % 3 == 0:
sum += x
elif x % 5 == 0:
sum += x
print(sum)