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.0.tar.gz (2.2 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.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: primetime-1.0.0.tar.gz
  • Upload date:
  • Size: 2.2 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.0.tar.gz
Algorithm Hash digest
SHA256 8c56b7bdb25d3b707b084a5499da375cf107951fc887752c5dae0084b3966d6d
MD5 af13e1bebab2a20cc6aa7cd1b8db4474
BLAKE2b-256 26a8860d242137282b0185e2e6c9818dc8abac00293ddcfa5026234b1001d59e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: primetime-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2222c0d0382ccfc267f45b25e4227861d13e32492dd56ba3911baf4686df6bf9
MD5 000593dbdbeb5e3b9ce5c507d0ab416a
BLAKE2b-256 de9dfd42fd3c0aca52df24832ab6149e94aa588710555a305eee42232b35adb6

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