For RSA you need a bignum library. The numbers are way too big to fit into a 64-bit long long. I once had a colleague at university who got an assignment to implement RSA including building his own bignum library. As it happens, Python has a bignum library.
819k 196 1592 1455. Usually, you would choose a base that is half the largest representable type so that there are no overflows. For instance, in modern C, you would choose uint32_t and do all the digit arithmetic in uint64_t. And don't forget: make the digit type unsigned so that there are no surprises. – JaakkoK. Large numbers in React. Ask Question Asked 4 years, 8 months ago. Native js not support big number. If you want work on front-end with big number, Creating a simple Big number class in Java. So, what do we need? First, a representation of the number, based on the datatypes which Java gives us. As you think the decimal conversion is the most complicated part, let's stay in a decimal based mode. For efficiency, we'll store not real decimal digits, but work in base 1 000 000 000 = 10^9 < 2^30. . 396 197 170 30 125 319 223 161 305