```
> def is_prime(x):
> pn = 0
> A = True
> if x<=1:
> A = False
> elif x==2:
> return A
> else:
> for n in range(2,x-1):
> pn = x % n
> if pn == 0:
> A = False
> break
> else:
> return A
> return A
```

why does this return to True at 9?