很简单
c=0
for i in range(100,1001):
for j in range(2,i):
if i%j==0:
break
else:
print(i,end=' ')
c+=1
if c%10==0:
print(end='\n')
print('总:',c)
很简单
c=0
for i in range(100,1001):
for j in range(2,i):
if i%j==0:
break
else:
print(i,end=' ')
c+=1
if c%10==0:
print(end='\n')
print('总:',c)