You can use strings (yes, don't be surprised, you can!). A program can be created in lines to multiply two very large numbers (here I say that the numbers say 5000 digits in length, each!) I already created them for addition and subtraction, and itβs not so difficult to create it for Multiplication, and I assure you that although you will think that using BigInteger will be faster, but using Strings will be Ultrafast compared to BigInt.
And what slipped through my middle, I used the StringBuilder class to make the program more efficient.
source share