用python解决  Project Euler 问题 记录

由于比较擅长java  对python相对陌生,就用python来解答

Project Euler Problem 1_python

Project Euler Problem 1_python_02

 

源码:

 

 

sumAll =0
for index in range(1,1000):
    if index%3==0 or index%5 ==0:
       sumAll += index

print(sumAll)