Open
Description
Other libraries like GMP use a divide and conquer algorithm which find a power of 10 with size near half of the digits of the number, use that as the base and convert the original number to a 2 digit number in that base, convert each digit recursively to base 10 and finally concat the results. Assuming that we have a O(nlogn)
multiplication routine, this algorithm would be O(nlog^2 n)
and would be faster than the current O(n sqrt n)
algorithm.