(loop(setf n(read)r(isqrt n))(format t"~D: ~D "n(-(loop for k from 1 to r if(=(mod n k)0)sum(+(/ n k)k))(if(=(* r r)n)r 0))))