function fails on is_prime(2). It returns False when it should return True.

There seems to be no error in the code.

```
def is_prime(x):
n = 2
while True:
if x > 2 and n < x:
if x % n == 0:
return True
break
else:
n += 1
continue
elif x < 2:
return False
elif x == 2 and x == 3:
return True
break
else:
return False
```