#method 1.
check = False
num = input("Enter number to check if its prime: ")
if (int(num) > 1):
for i in range(2, int(num)):
if (int(num) % i) == 0:
check = True
break
if check: print("The number {}".format(num) + " is not prime") else: print("The number {}".format(num) + " is prime")
if int(num) > 1:
for i in range(2, int(num)):
if (int(num) % i) == 0:
print("The number {}".format(num) + " is not prime")
else:
print("The number {}".format(num) + " is prime")
else:
print("The number {}".format(num) + " is not prime")