for i in range(1,input()+1):print "%d:"%i+" ".join(`a`for a in range(1,i+1)if i%a<1)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page