Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

prime number checker

num = int(input('enter a number : '))

while num%2 and num%3 and num%5 ==0:
    print( "it is not a prime nunber")
    break
else:
    
    print( "it is a prime nunber")
 
PREVIOUS NEXT
Tagged: #prime #number #checker
ADD COMMENT
Topic
Name
5+5 =