Add the prime_factors, sum_of_divisors, sum_of_proper_divisors functions to the module; refactor some solutions