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

This is my code, whenever I try and run it its gives me the error that 9 returns True instead of False . I have no idea what is wrong and have played with it for a while now. Please help.