import math


def is_prime(value: int) -> bool:
    """
    Check whether the specified number is a prime number.

    :param value: the value to be checked
    :return: true if the number is a prime, false otherwise
    """
    if value == 2:
        return True
    else:
        return all(value % x != 0 for x in range(2, math.ceil(math.sqrt(value)) + 1))