6. is_prime


#1

plzz anyone help me with this...i m not getting my mistake.:cry:

def is_prime(x):
    if x == 2 or x == 3:
        return True
    elif x > 2:
        for n in range(2,x-1):
            if x%n == 0:
               return False
               break
        return True

6. is_prime
#2

what is the error message? You are going to need to make another if or elif to check for low number (1 and lower) which include the negative numbers