Start with 1 and the number itself
Test each integer from 1 up to the square root of the number
If the number is divisible by the integer, record both the integer and the quotient
Avoid duplicate entries when the integer equals the square root
Sort the recorded values if needed
List all recorded values as the divisors of the number
