Program Check Number Prime or not
Tab #2
Program Check Number Prime or not
#Python program to check if the given number is prime or not
n=21
if n>1:
for i in range(2, n):
if (n%i)==0:
print(n, "is not a prime number")
break
else:
print(n, "is a prime number")
else:
print(n,"is not a prime number")
Tab #2
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.