import math


def is_prime(x):
    """
    Checks if x is prime
    """
    if x <= 1:
        return False
    for i in range(2, round(math.sqrt(x)) + 1):
        if x % i == 0:
            return False
    else:
        return True