Skip to main content

Fast prime number toolkit CLI

Project description

PrimeTime 🦊

Fast, dependency-free prime number toolkit CLI in pure Python.

# Install via PyPI (coming soon)
pip install primetime

# Or clone & run
./primetime generate 10000000 --progress

Features

  • Deterministic Miller-Rabin primality test
  • Optimized segmented sieve (O(√N) memory)
  • Count-only mode (--count) for huge limits
  • Progress reporting (--progress)
  • JSON export
  • Symlink support (ptgen, pttest, etc.)

Usage Examples

./ptgen 10_000_000                    # Full list + JSON
./ptgen 1_000_000_000 --count         # Fast count only
./ptgen 50_000_000 --progress         # Live progress
./pttest 2027

Symlinks (recommended)

ln -s primetime.py ptgen
ln -s primetime.py pttest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

primetime-1.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

primetime-1.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file primetime-1.0.1.tar.gz.

File metadata

  • Download URL: primetime-1.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for primetime-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cf705a4f0fd0b10d1df20239bca26b3cf313d95951f4ceeb5e3b454d637021ea
MD5 6fceb28d5aef076f5a14a21970a73154
BLAKE2b-256 ec320272b5e7580768ba65bcb986cab3f1fdcdc60a82d3cb9b179709176f8ae9

See more details on using hashes here.

File details

Details for the file primetime-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: primetime-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for primetime-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5fcee9cb4d69f1c2e0822960227b04774db715b2487f7e4103ee1ffa91b479bb
MD5 d3603964f6ae4affa8548d1f97945717
BLAKE2b-256 84466424dff37d7855de80015c5feab8338fb6f05960114d52961a2886824ffd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page