Oops, try again. Your function fails on is_prime(3). It returns None when it should return True.

i have been struggling through most of practice section but i was almost sure this was right. it makes sense to me if i read it out loud would like to see if someone could also explain why i am off and how close was it to a good answer

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