Gray code by 51b

writeln("Gray code  n=",n:="\x03\x04\x07"at(Date second%3))
(n=2**n)repeat(i,(i^i/2|n ..)toBase(2)slice(1)println)

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

download

return to the top page