这是3-100的素数,供参考!def is_prime(n):i = 2 while(i < n):if n % i == 0:break i += 1 if n == i:return True else:return False p = 0 for i in range(3,101):if is_prime(i):print i,p += 1 if p % 10 == 0:print '\n'...