/elm-arithmetic

Elm library for integer arithmetic and number theory

Primary LanguageElmMIT LicenseMIT

Arithmetic: Elm library for integer arithmetic and number theory

(View the docs here.)

Implements some useful functions involving:

  • Parity and modular arithmetic
  • Base conversion
  • Squares and cubes
  • Divisors, GCD, LCM
  • The Chinese Remainder Theorem
  • Prime sieves and prime checking (Miller–Rabin)

Released under the BSD3 license.