0

Hello, i would like to ask you help with my code, i can't understand why exactly it doesn't work like i am expecting :). I am working through "How to Think Like a Computer Scientist" by Jeffrey Elkner, Allen B. Downey, and Chris Meyers so i am still doing my first steps.

```
def is_prime(n):
i = 2
while n > i:
if n % i != 0:
return True
else:
return False
i += 1
```

it seems that

`i += 1`

statement not functioning at all.

Thanks for your time. Any help would be appreciated!