wap in Python to input any number and check whether it's prime or not
Answers
Answered by
0
Answer:
puthon
Explanation:
Answered by
0
Answer:
Hey this is in python...
function checkPrime(num):
for i in range(2, num):
if num%i == 0:
return(num + "is a prime number")
else:
return(num + "is not a prime number")
n = int(input("Enter a number))
print(checkPrime(n))
Similar questions