Gaussian Prime by hallvabo

R=range(-23,24)
for a in R:
 s=''
 for b in R:B=a*b!=0;x=abs(a**-~B+b**-~B);s+=" [ ]"[x%4+2*B>2>~-2**x%x::2]
 print s

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

download

return to the top page