Kolakoski Sequence by Sait2000

for(r='1',n=x=i=2;i--?r+=n:(n=3-n,i=r[x++],r.length<1e4););print(r)

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

download

return to the top page