A Python library for finding the nth prime number
Project description
Prime Finder
A Python library for finding the nth prime number efficiently.
Installation
pip install prime-finder
Usage
from prime_finder import get_nth_prime
# Get the 5th prime number
fifth_prime = get_nth_prime(5) # Returns 11
# Get the 100th prime number
hundredth_prime = get_nth_prime(100) # Returns 541
Features
- Efficient algorithm for finding the nth prime number
- Simple and intuitive API
- Comprehensive test coverage
- Type hints for better IDE support
Development
- Clone the repository
- Install development dependencies:
pip install -e ".[dev]" - Run tests:
pytest
License
MIT License
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
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 prime_finder_srk-0.1.0.tar.gz.
File metadata
- Download URL: prime_finder_srk-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67e3c25939be4bb82c0e31135c48c5182d8e1bcb3fd7137b31c854580101f42a
|
|
| MD5 |
de8c6c17409b1fbfb784fbe03d24ceef
|
|
| BLAKE2b-256 |
ccfcf83b60a5d587426ec933aa7386d766d63195b79de9d561452d30d45fd937
|
File details
Details for the file prime_finder_srk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: prime_finder_srk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
342cb359612ba5712a0b4abb934023aa4699661b74f0e9f763ad56826bcc6ecc
|
|
| MD5 |
097e0a61db30a5eb5b5a7fee8a6dd81d
|
|
| BLAKE2b-256 |
fd5a783fdea837d21d4be33a3417f9e964145a024a2674a3332948fd39de2dd1
|