Could someone, help me to find the error? But, please don’t tell me the solution, only some tips.

Define a function called is_prime that takes a number x as input.

For each number n from 2 to x - 1, test if x is evenly divisible by n.

If it is, return False. If none of them are, then return True.

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