def check_if_prime():
number = int(input("Enter number: "))
prime_lists = [1,2,3]
divisible_by = []
if number in prime_lists:
return divisible_by
if number==0:
return None
for i in range(2,number):
if number%i==0:
divisible_by.append(i)
return divisible_by
check_if_prime()
def prime():
prime=True
while True:
for i in range(2,x-1):
y=x%i
if (y==0):
prime=False
break
if (x==0) or (x==1):
print(x , "is not a prime number")
elif (prime==True):
print(x , "is a prime number")
else:
print(x , "is not a prime number")
x=int(input("Enter a number:"))
prime()