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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f1a4321a3eee4373e5566767133c60498064282c7ceaae5594f662ecd004ae9
|
|
| MD5 |
cecc5b8d644dc24bdcd81086c2f1711d
|
|
| BLAKE2b-256 |
a07d10f493588bbd29c085104f502e8c648cbc0b4cd3eb41f73f7ed69a6b2818
|
File details
Details for the file primevalidation-0.1.0-py3-none-any.whl.
File metadata
- Download URL: primevalidation-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e40d171e15025f9419f2c832d5402120cf2942758f397deaec83511ccbc59ad6
|
|
| MD5 |
74a18ddff5b06435f09dac92b0498810
|
|
| BLAKE2b-256 |
ce6e02c1a908abbd91e8ceb7f5b7eb93954fff9b1479f7322311c194f16219bc
|