Jul-16-2019, 03:59 PM
When I was writing that code I thought that divisors were whole numbers that resulted from continues dividing a number by 2. For instance 8. Under my logic, it would have divisors of 4, 2, and 1. Or if I have 18 it would have the divisors of 9. I realize now that is incorrect, however, the issue of my code remains. Under the above logic if I put in 8 into my code I should be getting back [4, 2, 1], however, I am getting back [4, 3, 2, 1].