1.
print sum([n for n in range(1000) if n%3 == 0 or n%5 == 0])
2.
x=y=1 sum=0 while x<4000000: x,y=y,x+y if y%2 == 0: sum = sum + y print sum
3.
4.
5.
6.
7.
9.
10.
13.
15.
16.
print reduce(lambda x,y:int(x)+int(y),list(str(2**1000)))
18.
20.
24.
25.
26.
28. ∑(16n^2-28n+16) 其中求和从n=1到501.
67. 同18