find minimum cyclic parts by zetamatta

for L in io.lines()do i=99 repeat i=i-1;S=L:sub(-L:len()/i)until L==S:rep(i)print(S)end

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

download

return to the top page