Is_prime


#1

can someone help me with this code?

def is_prime(x):
    if (x == 0 or x == 1):
        return False
    for n in range(1, x):
        
        if x % n != 0:
            return True


Replace this line with your code.


#2

Please be a little lot more specific about what information you're missing


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.