why should I return true for a value of 2?

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

Code works on python 3.5.1 with any number I feed it. I should expect it to work here.

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