Linus Sequence by rolf

s="12"
l=lambda s:max([i*(s[-i:]==s[-2*i:-i])for i in range(999)])
exec's+=s[l(s+"1")>l(s+"2")];'*998
print s

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

download

return to the top page