7 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.
PandaPrimes
PandaPrimes is a CPython extension under active development, leveraging the powerful primesieve library to significantly enhance prime number generation performance.
Usage
Iterating Over Primes
Iterating through primes is a common practice, providing a memory-efficient way to work with prime numbers. PandaPrimes introduces two main functionalities for iterating through primes.
primes_range
The primes_range function enables seamless iteration through prime numbers within a specified range.
from PandaPrimes import primes_range
primes_count = 0
# Example 1: Iterate through primes less than or equal to one million
for prime in primes_range(10**6):
primes_count += 1
primes_count = 0
# Example 2: Iterate through primes in the range between one million and five million
for prime in primes_range(10**6, 5*10**6):
primes_count += 1
Prime Generation
generate_primes
The generate_primes function creates a NumPy array containing prime numbers within a specified range.
from PandaPrimes import generate_primes
# Example: Generate an array of primes from 2 to 1e10
primes_array = generate_primes(10**10)
generate_n_primes
The generate_n_primes function generates a NumPy array of the first n prime numbers.
from PandaPrimes import generate_n_primes
# Example: Generate an array containing the first million prime numbers
primes_array = generate_n_primes(10**6)
Installation
As of now, PandaPrimes is still under development.
-
for now you can try it by installing primesieve library on you machine first. install primesieve
-
after that you can simply install PandaPrimes using pip.
pip install PandaPrimes
Contributing
We welcome contributions from the community! Feel free to contribute by opening issues, submitting pull requests, or providing feedback.
Please note that the README usage section is a work in progress, and further details will be added as development progresses.
Release files for PandaPrimes 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Files added late
7 files were uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PandaPrimes-0.0.6.tar.gz | 6.7 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| PandaPrimes-0.0.6-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 | Details |
| PandaPrimes-0.0.6-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 | Details |
| PandaPrimes-0.0.6-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 | Details |
| PandaPrimes-0.0.6-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.9 | CPython 3.9 | Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 | Details |
| PandaPrimes-0.0.6-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.8 | CPython 3.8 | Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 | Details |
| PandaPrimes-0.0.6-cp37-cp37m-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.7 | CPython 3.7 pymalloc | Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 | Details |
| PandaPrimes-0.0.6-cp36-cp36m-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.6 | CPython 3.6 pymalloc | Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 | Details |
Total release size: 974.7 kB
Release files / PandaPrimes-0.0.6.tar.gz
| Download URL | PandaPrimes-0.0.6.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbeaa84e47fd28b73485ae2750261ed6a669a9e8d2a05025bd119743998ea6f0
|
|
BLAKE2b-256 checksum How to use checksums |
c4777cd8091f628d321d98911c8a85074a0b9d4d041acab2be1b070ac49eceb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / PandaPrimes-0.0.6-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | PandaPrimes-0.0.6-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 139.5 kB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
ab6145c85afe4ace2a444cba3f349c5fbff5026bd4f87149bee440c577efb309
|
|
BLAKE2b-256 checksum How to use checksums |
d50fe6e5f2f47927005bc2da01bfac8a6934c2816335fa6f4a67f8cfaf8f3a26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / PandaPrimes-0.0.6-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | PandaPrimes-0.0.6-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 138.8 kB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
37115fafb36cec63ee91f3e5ab7791090d8830742f28977b9d977f32b8b22814
|
|
BLAKE2b-256 checksum How to use checksums |
8fbc6a81f0e8c6cb0ecf5fc6579801e36f2b2d679d37a60f3ac4b61cac3989e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / PandaPrimes-0.0.6-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | PandaPrimes-0.0.6-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 138.0 kB |
| Tags | CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
fdd55d1190bee217c24c9d64f9695ae97938e269fd6be07ad975ffda087116f8
|
|
BLAKE2b-256 checksum How to use checksums |
817feb61ebbb292aa6b0b9b7053baa2b1ca743877550f7ade728ab425b73513c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / PandaPrimes-0.0.6-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | PandaPrimes-0.0.6-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 137.7 kB |
| Tags | CPython 3.9 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
2be5c790e832524c48c48c9896ab811a5e80b38d238d07977631a466fb0c8bc3
|
|
BLAKE2b-256 checksum How to use checksums |
0029175df1fcd4206561618049fa02a8b2d1cc1f6fb7e6bae566328b1ea896fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / PandaPrimes-0.0.6-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | PandaPrimes-0.0.6-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 138.2 kB |
| Tags | CPython 3.8 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
72571d9f19abcf1ff204319a71532b1cf55e231a9b38ed7dec209a0c7fd58ee0
|
|
BLAKE2b-256 checksum How to use checksums |
aa1126d92f1c26f05dcc009590a0820df5616ffbb61d7ec62418b234ccb88d6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / PandaPrimes-0.0.6-cp37-cp37m-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | PandaPrimes-0.0.6-cp37-cp37m-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 138.4 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
991ea0a361789a0a7411b964694a7cb9f0c22ea86a835766c60bbe897c5c980e
|
|
BLAKE2b-256 checksum How to use checksums |
8b775d975e70604b9c9aeef7dd50cfd376ecf87dce54d8928044a56d3038b770
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / PandaPrimes-0.0.6-cp36-cp36m-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | PandaPrimes-0.0.6-cp36-cp36m-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 137.5 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
0b3136c8a56a5afdb7cead4e1a5cc07f12a12838d1008f40750fcbaffd936eb6
|
|
BLAKE2b-256 checksum How to use checksums |
80751be29b9ed4ba41b437bd85e8dc64caa08f5e3522f7ccffdf2180251d89e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|