Skip to main content

A simple Python library to validate if a number is prime.

Project description

primevalidation

A fast, lightweight, and well-documented Python library to check whether a given integer is a prime number.

Features

  • Extremely simple API: just one function is_prime()
  • Efficient trial division optimized with 6k±1 wheel
  • Type hints and full docstrings
  • No external dependencies
  • 100% test-tested with pytest
  • Works with Python 3.8+

Installation

pip install primevalidation

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

primevalidation-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

primevalidation-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file primevalidation-0.1.0.tar.gz.

File metadata

  • Download URL: primevalidation-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for primevalidation-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4f1a4321a3eee4373e5566767133c60498064282c7ceaae5594f662ecd004ae9
MD5 cecc5b8d644dc24bdcd81086c2f1711d
BLAKE2b-256 a07d10f493588bbd29c085104f502e8c648cbc0b4cd3eb41f73f7ed69a6b2818

See more details on using hashes here.

File details

Details for the file primevalidation-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for primevalidation-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e40d171e15025f9419f2c832d5402120cf2942758f397deaec83511ccbc59ad6
MD5 74a18ddff5b06435f09dac92b0498810
BLAKE2b-256 ce6e02c1a908abbd91e8ceb7f5b7eb93954fff9b1479f7322311c194f16219bc

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