def f(n):
    d = 2
    while n > 1:
        while n % d == 0:
            print(d)
            n = n // d
        d = d + 1
