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

I expect a 3 to move through x==2, and x<2 then enter the for loop. It when then have one cycle becasue range( 2,x-1) would be (2,2) and the condition would be 3%2=1 which would not satisfy that condition, so it should move to the else statement where cond=True and then return True ...but apparently I am wrong.....

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