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

So this is my code.

It works fine but! If x = 9 + 6 * N (N >= 0) it returns True instead of False....

And I tried to check my code with the numbers: 6, 9, 10, 15, 18 and 36. Besides 15 and 9 the code worked fine (returns False for the rest of the number which is good, that's what we want) but on 9 and 15 it returns True.

Can someone help me?