The algorithm currently works by converting from base X to base 10 and then to base Y. Where X or Y is base 10, part of that process is superfluous.
The algorithm currently works by converting from base X to base 10 and then to base Y. Where X or Y is base 10, part of that process is superfluous.