def prime_check(number: int) -> bool:
    '\n    Determines whether a given number is prime or not\n\n    >>> prime_check(2)\n    True\n    >>> prime_check(15)\n    False\n    >>> prime_check(29)\n    True\n    '
    if (((number % 2) == 0) and (number > 2)):
        return False
    return all(((number % i) for i in range(3, (int(math.sqrt(number)) + 1), 2)))
Determines whether a given number is prime or not

>>> prime_check(2)
True
>>> prime_check(15)
False
>>> prime_check(29)
True
def prime_check(number: int) -> bool:
    '\n    Determines whether a given number is prime or not\n\n    >>> prime_check(2)\n    True\n    >>> prime_check(15)\n    False\n    >>> prime_check(29)\n    True\n    '
    if (((number % 2) == 0) and (number > 2)):
        return False
    return all(((number % i) for i in range(3, (int(math.sqrt(number)) + 1), 2)))