Compute the number of digits an integer needs in a target radix (2-36), comparing binary and hex compactness.
支援 2-36 進位制。