Setting up a primeFactorization function