it tells me that is_prime(2) returns none instead of False. That means it's not iterating through my loops properly but not sure why.

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