Computer Science, asked by pradhanmanmath38, 6 months ago

wap in Python to input any number and check whether it's prime or not​

Answers

Answered by revagupta0332
0

Answer:

puthon

Explanation:

Answered by gaganadithyareddy9
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