bhnum / bigint

C++ bigint code snippet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

C++ bigint code snippet


Languages

Language:C++ 100.0%