Kolakoski Sequence by twobit

a="122"for i=3,6667 do a=a..a.rep(2-i%2,a:sub(i,i))end
print(a)

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

download

return to the top page