def is_prime(x):

if x>=3:

for n in range(2,x):

if x%n==0:

return False

else:

return True

elif x==2:

return True

else:

return False

Even I got the congratulation, I'm not sure about the code.

Would you please help me ?