import math


def prime_check(number: int) -> bool:
    """
    Determines whether a given number is prime or not

    >>> prime_check(2)
    True
    >>> prime_check(15)
    False
    >>> prime_check(29)
    True
    """

    if number % 2 == 0 and number > 2:
        return False
    return all(number % i for i in range(3, int(math.sqrt(number)) + 1, 2))