Finished the form for the primeFactorization method