for(d=n=1;n<301;r&&print(n+++':'+r),d++)r='',function f(n,i){for(i=0;d*!r&&n>=++i*i;v?d++:r+=' '+i)d--,f(v=n-i*i)}(n)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page