for i in range(2,101):
fg = 0
for j in range(2,i/2):
if (i % j ==0):
fg=1
if (fg== 0):print i
python方法输出100以内的素数
admin
1月 22, 2021
0
近期评论