prime_test
This module provides the function test(n) that returns True if n is a prime number, and False if it is composite (note that this test is probabilistic so that it can test extremely large numbers very fast for RSA). The function also has an optional variable k (defaults to 40) which is the iterations of the test, more information on that can be found here. Below is an example of how to use the module.
from prime_test import prime
prime.test(167)
Metadata
Release files for prime-test 0.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| prime_test-0.2.7.tar.gz | 2.5 kB | Without provenance | Details for prime_test-0.2.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prime_test-0.2.7-py3-none-any.whl | Python 3 | none | any | Details for prime_test-0.2.7-py3-none-any.whl |
Total release size: 5.3 kB
Release files / prime_test-0.2.7.tar.gz
| Download URL | prime_test-0.2.7.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67d28d554e62ee0b9109c5c2aa588ceeb78bc33d004e10a910a54301fe024895
|
|
BLAKE2b-256 checksum How to use checksums |
c54521d31d0da4de0ae9031e7e0e3a4bf75f41fab4b4108008daf4b1d1c05292
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Release files / prime_test-0.2.7-py3-none-any.whl
| Download URL | prime_test-0.2.7-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1accc231f5653ca7c70bd77c0e7b7adc84856ac616003ae0572ef4df48857d4
|
|
BLAKE2b-256 checksum How to use checksums |
b377ef8fc216f3ad41a384acec56d380b0b155b78b56d03caf0bc1934195e467
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Security for prime-test 0.2.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.