Use range Integer#prime_factors and Integer#harmonic