import math

def isPrime(x):
    if x <= 1:
        return False
    elif x == 2:
        return True
    elif x % 2 == 0:
        return False
    else:
        for d in range(3, int(math.sqrt(x)+1), 2):
            if x % d == 0:
                return False
    return True

print(str(isPrime(41)))