#4e. Coding in python. [PRIME NUMBER CHECKER]
#prime number tester
a=int(input("Enter number:"))
for b in range(2,a):
if a%b==0 :
print ( a , "is not prime number.")
break
else:
print ( a , "is prime number." )
Download CODES here.
CLICK HERE for online Python.
a=int(input("Enter number:"))
for b in range(2,a):
if a%b==0 :
print ( a , "is not prime number.")
break
else:
print ( a , "is prime number." )
Download CODES here.
CLICK HERE for online Python.
Comments