Oops, try again. Your function fails on is_prime(9). It returns True when it should return False.

I don't know if this is mathematical or code problem

for example 9,

9

for i in [ 2, 3, 4, 5, 6, 7, 8 ]

9%2=1

9%3=0

9%4=1

9%5=4

9%6=3

9%7=2

9%8=1

9 is moduled by number 2 to 9-1 (which is limited by range (2, x))

and results include 0. Therefore, I want to make it false if there are 0 in module result.

```
def is_prime(x):
if x == 2:
return True
elif x>2:
for i in range(2,x):
if x % i == 0:
return False
else:
return True
else:
return False
```