The code runs perfectly fine, and returns True for a prime number. Even then the control gives error message that for (-7) it is returning True instead of False. As (-7) is prime it should be returning True, which is correct according to me, but then why that error message.

```
Replace this line with your code.
def is_prime(x):
x=abs(x)
if (x<=1):
return False
elif (x==2):
return True
else:
n=2
c=0
while(n <= x-1):
if (x%n == 0):
c+=1
return False
break
n += 1
if c>1:
return False
else:
return True
print is_prime(57)
```