gcdlcm18
gcdlcm18 is an open-source library and reference implementation for computing the greatest common divisor and least common multiple of integers. It aims for correctness, portability, and simplicity, offering clean APIs and compact code suitable for education, competitive programming, and lightweight software that relies on precise gcd and lcm calculations.
The project originated in 2018 when a small team of programmers and educators sought a dependable teaching
Core algorithms include the Euclidean algorithm for normal inputs, enhanced variants such as binary gcd for
gcdlcm18 is used as both a teaching aid and a practical tool in small projects and contests.
See also: greatest common divisor, least common multiple, Euclidean algorithm, binary GCD.