我最近开始玩python,我写了一个程序来打印第1000个素数,但输出只显示一个闪烁的光标,代码如下所示:
number = 3
count= 1
while count <= 1000:
prime = True
for x in range(2, number):
if number % x == 0:
prime= False
if prime == True:
count = count + 1
if count <= 1000:
number = number + 1
print number
任何帮助和简洁的解释将不胜感激