Practice Makes Perfect - is_prime

"Oops, try again. Your function fails on is_prime(-10). It returns True when it should return False."

I already solved it by writing

if x<2:

return False

However, I wonder why I get this error message specifically for is_prime(-10)?

Thanks for your help!

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