C++ - GMP pow() function

6.2k views Asked by At

I am trying to do pow(2,500) in C++. But I think long long is not enough.

Someone told me I can use gmp.h. But how do I do a pow(2,500) in gmp?

1

There are 1 answers

2
C. K. Young On BEST ANSWER

See Integer Exponentiation. Hint: choose either of the bottom two functions.