number-theory-2

A modern JavaScript library for number theory and modular arithmetic — including primes, totients, modular inverses, and more.

Browse on unpkg