def min_divisor_slow(N):
    for d in range(2, N + 1):
        if N % d == 0:
            return d