没注释的源代码
def prime(n):
for i in range(2,n):
if n % i == 0:
return False
else:
return True
for i in range(2,101):
if prime(i) :
print(i,end = ' ')
没注释的源代码
def prime(n):
for i in range(2,n):
if n % i == 0:
return False
else:
return True
for i in range(2,101):
if prime(i) :
print(i,end = ' ')