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
Social Sciences,
3 months ago
Math,
3 months ago
India Languages,
3 months ago
Geography,
6 months ago
Biology,
10 months ago
English,
10 months ago