var q,s,i:integer;begin repeat read(q);s:=0;for i:=1to q do s:=s+ord(q mod i=0)*i;writeln(q,": ",s)until 0=1end.
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page