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