https://www.codecademy.com/en/courses/python-intermediate-en-rCQKw/0/6?curriculum_id=4f89dab3d788890003000096#

When codecademy checks my function it fails at is_prime(9). I believe this is due to the fact that 9 % 2 == 1 and it decides that 9 is a prime number while its not.

I don't know how to force it to continue checking all the rest of the values up to 9.

```
def is_prime(x):
if x > 1:
for i in range(2, x + 1):
if x % i == 0 and x != i:
return False
else:
return True
elif x < 0 or x == 0:
return False
else:
return False
```