Skip to main content

Generate a list of prime numbers within a specified range

Project description

PySieveEra is a Python package that implements the Sieve of Eratosthenes algorithm to efficiently generate a list of prime numbers within a specified numerical range. This tool is useful for various mathematical and computational applications that involve prime numbers.

Installation

You can install PySieveEra using pip, the Python package manager. Open your terminal or command prompt and run the following command:

pip install PySieveEra

Usage

from PySieveEra import SieveEra

# Generate a list of prime numbers within a specified range
limit = 40
prime_numbers = SieveEra(limit)
print("Prime numbers within the range:", prime_numbers)

Options

limit (default is 20): The upper limit for generating prime numbers. Specify the maximum value up to which you want to find prime numbers

Output

The function returns a list of prime numbers within the specified range. You can then use this list for your specific needs. Prime numbers within the range: [2, 3, 5, 7, 11, 13, 17, 19]

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PySieveEra-0.1.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.

PySieveEra-0.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file PySieveEra-0.1.tar.gz.

File metadata

  • Download URL: PySieveEra-0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for PySieveEra-0.1.tar.gz
Algorithm Hash digest
SHA256 b50c9b33001663e9faa05be713b3548f281c22803dd6d710c844d83354fad72f
MD5 468ca8ad31fd11ff23f9c47111120726
BLAKE2b-256 a2188975d821d043cbe7236e5ab92e3fa242b8de5d6cff3b66f0c9a55d95cc87

See more details on using hashes here.

File details

Details for the file PySieveEra-0.1-py3-none-any.whl.

File metadata

  • Download URL: PySieveEra-0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for PySieveEra-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0fb200c93a2b5e874ab400744c35b7adaef80a404c85b3faf840462d60b6c698
MD5 5449ccb0ad19b421ab76e6248d1edc88
BLAKE2b-256 02010819540f44a4fe633e7f59ae2b32b64f05144abdfd1348a6a5d9e1bb9378

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