Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67165 胡海峰老师 判断素数 Python3 Accepted 31 MS 3768 KB 206 2024-03-14 20:10:18

Tests(25/25):


Code:

def isPrime(n): if n<2: return "No" for x in range(2,int(n**0.5) +1): if n%x ==0: return "No" return "Yes" n = int(input()) res = isPrime(n) print( res )