>but since that only works on output, or just in case you wanted to know
Agreed, knowing the algorithm certainly helps to understand better, and as you implied, you can convert to any base.