i=1
while i<100:
x=2
while x<i:
if i%x==0:
break
x+=1
else:
print(i)
i+=1
输出1-100的质数
猜你喜欢
转载自blog.csdn.net/weixin_41478121/article/details/88831574
今日推荐
周排行