Kolakoski Sequence by *yuko*

s=;i=2;do 1e4;s=s||2-i%2//2;i=i+3-substr(s,i%2,1);end;say s

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

download

return to the top page