for(y=-24;y++<23;print())for(x=-24;x++<23;putstr(i-1?' ':'[]'))for(z=Math.abs(x+y),i=v=x*y?x*x+y*y:z%4-3?4:z;v%--i;);