Kolakoski Sequence by Histocrat

s=1,2
22.times{l=2
s=s.map{|c|[l^=3]*c}.flatten}
$><<s[0...1e4]

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

download

return to the top page