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

not able to understand why logic fails at 9.Expected it to return False and break at 3.

```
def is_prime(x):
if x<2:
return False
if x==2 or x==3:
return True
else:
for i in range(2,(x-1)):
if x%i==0:
return False
break
else:
return True
```