I get an error that says “Your function fails on is_prime(4). It returns True when it should return False.” Could someone explain why? My code is below. I tried working it out and I don’t see how this doesn’t work as a solution. Thank you.

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