📜  python素数总和 - Python代码示例

📅  最后修改于: 2022-03-11 14:46:48.704000             🧑  作者: Mango

代码示例1
the_sum = 0
for number in range(20):
    if number > 3:
        for i in range(2,number):
            if (number%i)==0:
                break
            elif i == (number-1):
                the_sum += number
                print(number)
print (the_sum)