def is_prime(x):

if x < 2:

return False

elif x == 2:

return True

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

Guys i dont fully understand what the second half of the code does (for n in range ....)

can someone please explain. Thanks really appreciated.