This just doesnt want to work!

When I try, it just says that when Is_prime(3), it returns false insted of true, and that happens no matter what I do, Help pls

```
x = input("Input a number to be checked:")
x = int(x)
def is_prime(x):
n = 1
if x == 0 or x == 1:
return False
elif x == 2:
return True
else:
while n != x:
if x % n >= 1:
n += 1
elif x == n:
return True
else:
return False
```