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

I am heavily stuck here...found other solutions online, but cant understand why this code is not working? Anyone can help with explanation?

thanks