Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

prime numbers 1 to input

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 #numbers #input
ADD COMMENT
Topic
Name
5+3 =