I thought this would work but for some reason, I keep getting a syntax error. Can someone see somethig i missed?

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