= int(input("Enter a number: "))
n
= True
number_is_prime for i in range(2,n):
if ((n % i)==0):
= False
number_is_prime
if (number_is_prime==True):
print(f"The number {n} is prime")
else:
print(f"The number {n} is not prime")
Primality test
sample solution