s = 0 unseen = 0 seen(v) = bittest(s, v) see(v) = s = bitor(s, 2^v); while (seen(unseen), unseen++) other(n) = { for (v=unseen, oo, if (!seen(v) && issquare(bitand(n, v)), see(v); return (v); ); ); } for (n=0, 2^13, print (n " " sqrtint(bitand(n, other(n))))) quit