Commit 3da3aea9 authored by Sai Mounika's avatar Sai Mounika

Add new file

parent 6b1b271f
a=input("enter a range")
n=input("enter a number")
count=0
for i in range(2,a):
if n%i==0:
count=count+1
i=i+1
else:
count=count
if(count>1):
print n
print "is not prime num"
else:
print n,"is prime"
'''output:
enter a range20
enter a number17
17 is prime
'''
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment