Magic square by primo

j=x=input()
while j:i=x/2;j-=1;exec"'%3s'%(1+~(i*x-(i+j)%x*~x)%x**2),;i+=1;print"*-~x

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

download

return to the top page