I have no idea why it fails on is_prime(9), and returns true instead of false. I’ve followed the logic of it when it’s 9 and I thought the 9 % 3 would be tested as each iteration goes up 1 so it should be false…I tried messing with the range but that created other numbers that didn’t work and it seems right already in my mind (it’s what the the exercise tells me to do)…I’m stumped

```
def is_prime(x):
if x < 2:
return False
elif x == 2 or x == 3:
return True
else:
for n in range(2, x - 1):
if x % n == 0:
return False
else:
return True
```