import math


def is_prime_v2(integer):
    """Return 'True' if integer is a prime. Else 'False'."""
    if integer == 0:
        return False
    if integer == 1:
        return False
    max_divisor = math.floor(math.sqrt(integer))
    for number in range(2, 1 + max_divisor):
        if integer % number is 0:
            return False
    return True