We (people) take more time to multiply, add, divide and subtract two large numbers than two small numbers.
Does the computer take more time to multiply 5 * 2than say 51234 * 987654, or is this operation performed in the same time?
5 * 2
51234 * 987654
What about two numbers that are larger than the processor word size (for example, two 128-bit numbers)?
I saw an article https://en.wikipedia.org/wiki/Multiplication_algorithm
. , , , 64- 64- : , , . - , Java BigInteger : , , , , .
BigInteger
: , - , 64 64- , , 5 64 . .
EDIT:@nwellnhof: , , . .
, x86, , . - 80486 . Pentium on imul , .
imul
, , - , IIRC .
, " ", , .