import math
def prime(n):
d = math.floor(math.sqrt(n))
for i in range(2,d+1):
if(n%i==0):
print(i)
return 0
break
return 1
n=10
if(prime(n)):
print("Yes")
else:
print("No")
import math
def prime(n):
d = math.floor(math.sqrt(n))
for i in range(2,d+1):
if(n%i==0):
print(i)
return 0
break
return 1
n=10
if(prime(n)):
print("Yes")
else:
print("No")
Comments
Post a Comment