# POTD 19 skel
# Author:
# Date:
# Description:

import sys

def get_factors(n):
    """ Return a dictionary with the integers from 2 to N (inclusive) as keys.
    The value associated with a key k is a list of the positive integer factors
    (divisors) of that number, in ascending order.
    Precondition: N is an integer >= 2 """
    
    result = {}
    
    # For each number from 2 to n
    for num in range(2, n + 1):
        factors = []
        
        # Find all factors by checking divisibility from 1 to num
        for potential_factor in range(1, num + 1):
            if num % potential_factor == 0:
                factors.append(potential_factor)
        
        result[num] = factors
    
    return result

if __name__ == "__main__":
    pass