Multiplication of very long integers

后端 未结 7 1009
耶瑟儿~
耶瑟儿~ 2021-02-09 06:04

Is there an algorithm for accurately multiplying two arbitrarily long integers together? The language I am working with is limited to 64-bit unsigned integer length (maximum int

7条回答
  •  一整个雨季
    2021-02-09 06:41

    If you can't use an existing bignum library like GMP, check out Wikipedia's article on binary multiplication with computers. There are a number of good, efficient algorithms for this.

提交回复
热议问题