import math


def find_first_divisor(N):
    """Finds the first divisor of N
    
    Args:
        N: an integer to be factored

    Returns:
        an integer representing the first divisor of N

    """
    for i in range(2, int(math.sqrt(N)) + 1):
        if N % i == 0:
            return i
    return N