Lib-GMP (The GNU Multiple Precision Arithmetic Library) is among the most
powerful C/C++ tools available. It allows someone to manipulate variables
on a computer limited only by the amount of physical memory located on the
machine. For more information on Lib-GMP, check out:
The following is an example of Lib-GMP manipulation power of integers.
Enter an integer expression in the field below. The expression may
include +, -, *, /, %, ^ (exponentiation), and ! (factorial), the n-ary
functions `gcd', `lcm', `and', `ior', `xor', `mul', `plus', the binary
functions `minus', `div', `mod', `rem', and the unary function `popc'
(population count). Most functions may also be used in infix form. All
constants must be integers.
An example of a valid expression is:
1 + gcd(87324,78263148,7896) * (10^1989879887 mod 471!) + (23456789 mod ((32003-1)/2))
These computations are running on a machine with the
Four 2.4GHz Intel Pentium Xeon Processors, 3GB RAM, 19197 Bogomips Total
Linux Version 184.108.40.206-smp, Compiled #1 SMP Mon Mar 14 22:02:40 MDT 2016
If you want to know how to do things such as this with GMP, take a
look at demos/pexpr.c in the GMP distribution, the program used
to compute these expressions.