primeFactors() refactored