Simplified divisor function
Solved p23