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

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

hi, don't understand what's worng in my code.

help please?

and another question- i saw in few places the code:

< for n in range(2, x-1):

if n % x == 0: >

and copy it but i don't realy understand it.

thank's!