PAT 1013 数素数 (20point(s)) 这也太难了吧!
di`import math
a = input()
Prime_number = []
interregional = a.split(" ")
def is_prime(n):
if n == 1:
return False
for i in range(2, int(math.sqrt(n))+1):
if n % i == 0:
return False
return True
for i in range(1,int(math.pow(2,31)-1)):
if len(Prime_number.
原创
2020-08-04 16:47:46 ·
134 阅读 ·
0 评论