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

Number Theory Python Packages

Python packages with the GitHub topic number-theory. Sorted by monthly downloads, with stars and forks.
mhostetter
galois

A performant NumPy extension for Galois fields and their applications

204K 473 44
Abhrankan-Chakrabarti
foxmath

Minimalist CLI & library for number theory and cryptography

6K 1 0
lapets
rabinmiller

Pure-Python implementation of the Rabin-Miller primality test.

6K 0 0
WhiteSymmetry
kececinumbers

Keçeci Numbers, Keçeci Sayıları, kececinumbers, Keçeci Conjecture

3K 2 0
akielaries
openmtpk

Hardware Accelerated General Purpose Mathematics Package (very stale)

3K 7 5
sr-murthy
continuedfractions

Object-oriented continued fractions with Python.

3K 8 0
teschlg
kryptools

Implementation of some basic algorithms relevant for cryptography.

2K 0 0
a9lim
ogdoad

Clifford and Weyl algebras, quadratic forms, and games over exact, finite, local, and transfinite scalar backends

1K 1 0
tedteske
ndplex

The n-Dimensional m-Plex (ndplex) Array: a generic Pascal's array in Python

922 0 0
fionn
batch-gcd

DJB's batch GCD algorithm for fast factoring sequences of integers

873 0 0
transmogrifier
pidigits

Generate the digits of Pi using a streaming algorithm

797 13 0
ZohaibCodez
discrete-structures-mcp

AI-powered web platform for learning discrete mathematics through interactive tools and natural language chatbot using OpenAI Agents SDK & MCP protocol

721 1 0
daedalus
mcp-sympy

MCP server that exposes SymPy's symbolic mathematics functionality

548 1 0
edelveart
figuratenum

FigurateNum generates and visualizes 235+ plane, space, and multidimensional figurate number sequences.

537 7 1
aratrikghosh2011-tech
numclassify

python module for all number programs

505 1 1
cpoli
mathematicskit

Unified computational mathematics toolkit: numerical analysis, linear algebra, calculus, dynamical systems, partial differential equations, optimization, probability, statistics, number theory, combinatorics, complex analysis, graph theory, information theory, abstract algebra, geometry, topology, special functions, and fractals/chaos -- built on numpy/scipy, hand-rolling algorithms only where no library equivalent exists.

490 1 0
Czechbol
mathcrypto

A library of useful funtions used in cryptography. For learning purposes only.

481 1 0
Abhrankan-Chakrabarti
abhrankan-number-theory

Exact number theory in Python — Bernoulli numbers, Euler zigzag numbers, closed-form zeta(n), and an Euler-product approximation of pi from primes.

362 2 0
foxhackerzdevs
foxpi

High-precision π explorer with Chudnovsky, Ramanujan, Machin, and BBP-based comparison workflows.

339 1 0
JarryShaw
jsntlib

A number theory library adapted from mathematic fundamentals of information security homework codes.

309 8 1
akivag613
connes-cvs

Code and papers on the truncated Weil form, high-precision spectral computation, and sine Loewner trace laws and boundary spectra.

293 5 4
sumaddury
algepy-tools

A Python library for efficient number theory and abstract algebra.

286 1 1
avivbrook
mod-nest-exp

An algorithm that computes modular nested exponentiation efficiently

239 2 1
reity
pratts

Pure-Python library that enables generation and verification of Pratt certificates for prime numbers.

230 0 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology