n=0
for x in range(101,201):
for y in range(2,x):
if x%y==0:
break
else:
n+=1
print(x)
n=0
for x in range(101,201):
for y in range(2,x):
if x%y==0:
break
else:
n+=1
print(x)
本文标题:输出质数101-200,并统计个数
本文链接:https://www.haomeiwen.com/subject/piowiftx.html
网友评论