Solved 46
Factor out divisors function