solved primeFactorization