find minimum cyclic parts by pooq

for a in io.lines()do i=0 repeat i=i+1 b=a:sub(1,i)until(b:rep(#a/i)==a)print(b)end

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

download

return to the top page