function f(n,i){for(;d*!r&&0<=v=n-++i*i;v?d++:r=r" "i)d--f(v)}END{for(;n<300;d++>r=_)if(f(n+1)r)print++n":"r}

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

download

return to the top page