for i in range(2,101):
j = 2
while j < i:
if i % j == 0:
break
j += 1 # i % j == 0不成立,j = j+1,然后在比较j < i
else:
print('素数有:%d' % i)
for i in range(2,101):
j = 2
while j < i:
if i % j == 0:
break
j += 1 # i % j == 0不成立,j = j+1,然后在比较j < i
else:
print('素数有:%d' % i)