bigint
A simple lightweight C++ code snippet implementing bigint using an array of bytes. Code is not fully optimized.
Supported operations
- Addition
- Subtraction
- Multiplication
- Division
- Modulo
- Abs
- GCD
- LCM
Demo program
Compile and run main.cpp to test the library
$ g++ main.cpp -o out/main
$ ./out/main
Input
3526752 * 2673782646346834
Output
9429768295568989503168