Skip to main content

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

  1. Clone the repository
  2. Install development dependencies: pip install -e ".[dev]"
  3. Run tests: pytest

License

MIT License

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

prime_finder_srk-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

prime_finder_srk-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for prime_finder_srk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 67e3c25939be4bb82c0e31135c48c5182d8e1bcb3fd7137b31c854580101f42a
MD5 de8c6c17409b1fbfb784fbe03d24ceef
BLAKE2b-256 ccfcf83b60a5d587426ec933aa7386d766d63195b79de9d561452d30d45fd937

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for prime_finder_srk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 342cb359612ba5712a0b4abb934023aa4699661b74f0e9f763ad56826bcc6ecc
MD5 097e0a61db30a5eb5b5a7fee8a6dd81d
BLAKE2b-256 fd5a783fdea837d21d4be33a3417f9e964145a024a2674a3332948fd39de2dd1

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