fixed bugs in divisors.py, solution to 23