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

Why isn't my code working? I'm finding it difficult to solve it.