a huge integer power 3 power n

Torbjörn Granlund tg at gmplib.org
Sun Aug 28 16:16:04 UTC 2016


James Cloos <cloos at jhcloos.com> writes:

  He seems to want pow(huge_int,pow(3,n)) (but using gmp instead of libm).
  
Well, that should be straightforward to do from a manual read, at least
if huge_int is not terribly hard to compute.

But of course such an expression grows pretty quickly with n.  It will
have around 3^n*1000 bits, and most of us cannot afford the RAM or disk
for very large n.  I can afford up to n=18.  :-)

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-discuss mailing list