Prime Substrings by hallvabo

while~0:_=`input()`;n=len(_);print''.join(`+(lambda _:1<_>~-2**_%_<2>3**~-_%_)(int(_[i:i-~m]))`for(m)in range(n)for(i)in range(n-m))

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

download

return to the top page