Koch Island by nn

for(i=n=[,8,32,128][readline()];i--;print(o))for(o=j='';j<n;o+=' /\\'[v])for(p=i,q=j++,g=n/2,v=2-(p/g^q/g);g>1;v=v&&1526906730-444161385*v>>2*(p/g<<2|q/g)&3)p%=g,q%=g,g/=4

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

download

return to the top page