Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Modular Arithmetic Python Packages

Python packages with the GitHub topic modular-arithmetic. Sorted by monthly downloads, with stars and forks.
lapets
modulo

Pure-Python library for working with modular arithmetic, congruence classes, and finite fields.

275 5 1
avivbrook
mod-nest-exp

An algorithm that computes modular nested exponentiation efficiently

239 2 1
ini
numthy

Computational number theory. Pure Python. Zero dependencies. Unreasonably fast.

176 5 0
shadikhasan
pynumbertheory

A small number theory utility library (gcd, primes, modular arithmetic, CRT, etc.)

132 0 0
DasKaroWow
loopint

A fully typed cyclic integer type for Python with modular arithmetic and fixed [left; right) interval semantics.

85 1 0
lapets
hensel

Pure-Python implementation of Hensel lifting for square roots modulo a prime power.

77 0 0
nillion-oss
sophiegermain

Pure-Python library that provides a selection of Sophie Germain primes

62 4 1
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology