I tried all day!!!!! I really cant get this one right. Any help is appreciated.

MyCode =

def is_prime(x):

if x < 2:

return False

if x == 3 or x == 2:

return True

for i in range(2, x):

if (x % i) == 0:

return False

return True

print is_prime(27)