Why is x = 9 returning true?

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