Q12.
add the case n==1 in Pe.factors
Q12. improved (calculate the number of factors from the number of prime factors)