Gaussian Prime by nn

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;);

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

download

return to the top page