Integer Factorization solution