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)
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 | |
|---|---|---|---|
| prime_test-0.2.7.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prime_test-0.2.7-py3-none-any.whl | Python 3 | none | any | Details |
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
|