Gaussian Prime by nn

r=[*23..0,*1..23]
r.any{y->println r.sum{x->p=x*y?x*x+y*y:(x+y)%4-3?4:x+y;2**p%p-2&&p-2?'  ':'[]'}}

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

download

return to the top page