Storing and printing integer values greater than 2^64

后端 未结 5 445
粉色の甜心
粉色の甜心 2020-12-06 12:17

I am trying to write a program for finding mersenne prime numbers. Using the unsigned long long type I was able to determine the value of the 9th mersenne prime, which is (2

5条回答
  •  我在风中等你
    2020-12-06 12:53

    You can not do what you want with C natives types, however there are libraries that let handle arbitrarily large numbers, like the GNU Multiple Precision Arithmetic Library.

提交回复
热议问题