Semiprime factorization is as easy as 123 by btnlq

def r(d,x,y):q=x*y-s;q<1>q%d!=[r(d*10,x+w//3*d,y+w%3*d+d)for w in range(12-9*(3*x<y))]!=q>-1<y-x!=print(x,'*',y)
while 1:s=int(input());r(1,0,0)

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page