Primality test

sample solution

n = int(input("Enter a number: "))

number_is_prime = True
for i in range(2,n):
    if ((n % i)==0):
        number_is_prime = False

if (number_is_prime==True):
    print(f"The number {n} is prime")
else:
    print(f"The number {n} is not prime")