product of two large numbers

How to get product of two large numbers?

1 Like


It can be done easily in python by multiplying two numbers

you can refer link

You need to use languages which has data-type that supports big integers. Since Python3 doesn’t actually have any upper limit for integer. That would be the best language .

Further, Java has bigInteger class using which also you can perform arithmetics involving large value.

There are many ways to perform such a large multiplication. One of the known method is Karatsuba algorithm. You can refer these two links which will clearly explained your whole concept.

There is one question that will clear your all doubt is Just_multiply