Hello, everybody

Plz, help

What's wrong with this code?

is_prime(9) returns true, but 9 % 3 == 0

```
n = int(raw_input("Input a positive integer: "))
def is_prime(x):
if x < 2:
return False
elif x == 2:
return True
else:
for i in range(2, x):
if (x % i) == 0:
return False
break
else:
return True
print is_prime(n)
```