I am having the same problem. Can someone help me figure out the problem.

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