Okay so I feel like I'm really close. I've tested this function out multiple times and it works as far as I can tell, but for some reason is_prime(9) comes back True when it should return False. Can't figure out why. Please help. Also any tips on cutting down the length of the code would be appreciated, I can't help but feel like it's needlessly clunky.

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