divisors(1) # 1
divisors(2) # 1 2
divisors(2^5) # 1 2 4 8 16 32
divisors(1000) # 1 2 4 5 8 10 ... 100 125 200 250 500 1000
divisors(1001) # 1 7 11 13 77 91 143 1001
Run the code above in your browser using DataLab