这个是照我以前C语言写的输出质数博客改的,博客地址
myarr = [0, 1, 3, 4, 6, 7, 8, 100, 101, 103, 104, 107, 110, 111]
def isprime(n):
if n == 1 or n == 0:
return False
elif n == 2:
return True
else
这个是照我以前C语言写的输出质数博客改的,博客地址
myarr = [0, 1, 3, 4, 6, 7, 8, 100, 101, 103, 104, 107, 110, 111]
def isprime(n):
if n == 1 or n == 0:
return False
elif n == 2:
return True
else