Solved divisor problem