def is_prime(n):
for i in range(2,n):
if n % i == 0:
return False
return True
python判断n是否为素数
猜你喜欢
转载自blog.csdn.net/qq_41228218/article/details/88323037
今日推荐
周排行