PrimeFactors method implemented.