Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

1. Write a program in python to check a number whether it is prime or not.

num=int(input('enter no:'))
for i in range(2,n):
print(num,'is not prime')
break
else:
print (num,'is prime')
output:
enter no:13
13 is prime

You might also like