Kolakoski Sequence by Sisyphus (bitwise)

x=y=0
z='1'
exec'z+=`2-x%2`;x^=y&~-~y;y=-~y|x/2;'*9999
print z

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

download

return to the top page