不挂科搜题免费

问题:

100以内素数之和

答案:

s = 0for i in range(2,100): f = 0 for j in range(2,i): if i%j==0: f = 1 continue if f==0: s += iprint(s)