import math
def isPrime(n):
if n <= 1:
return False
for i in range(2, int(math.sqrt(n)) + 1):
if n % i == 0:
return False
return True
num = int(input('输入:'))
print(isPrime(num))
03-29
1万+