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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b50c9b33001663e9faa05be713b3548f281c22803dd6d710c844d83354fad72f
|
|
| MD5 |
468ca8ad31fd11ff23f9c47111120726
|
|
| BLAKE2b-256 |
a2188975d821d043cbe7236e5ab92e3fa242b8de5d6cff3b66f0c9a55d95cc87
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fb200c93a2b5e874ab400744c35b7adaef80a404c85b3faf840462d60b6c698
|
|
| MD5 |
5449ccb0ad19b421ab76e6248d1edc88
|
|
| BLAKE2b-256 |
02010819540f44a4fe633e7f59ae2b32b64f05144abdfd1348a6a5d9e1bb9378
|