Sample solution:

x = input()
while x > 1:
    d = 2
    while x % d != 0:
        d = d + 1
    print d
    x = x / d

(Press 'back' in your web browser to get back to where you were in the exam)
[main course web page]