a='12' i=0 while-999<i: if a[i+1:]==a[i-~i:i]:a+=a[a[i]<a];i=-len(a) i+=1 print a

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

download

return to the top page