prymbr
A Package to simplify the usage of prime numbers, fractions, and other simple yet time consuming operations.
Features:
- Check if a number is prime
- Decompose a number into a sequence of prime factors
- Find gcd and lcm of 2 numbers
- Create fractions
- Simplify fractions to the maximum
- Convert fractions back to decimals
- And more!
Incoming Update:
- Faster calculations with the use of Simd library
- More calculation options
Usage:
Install prymbr on your system with pip:
pip install prymbr
Example:
import prymbr
print(prymbr.isprime(51)) #False
print(prymbr.decomp(78)) #[2, 3, 13]
print(prymbr.pgcd(45, 63)) #7
print(prymbr.gcd(45, 63)) #7
print(prymbr.ppcm(45, 63)) #405
print(prymbr.lcm(45, 63)) #405
fraction = prymbr.frac(88, 48) #88/48
print(fraction)
print(prymbr.simp(fraction)) #11/6
print(prymbr.deci(fraction)) #1.8333
print(prymbr.frac(fraction)) #True
print(prymbr.frac(1.6424)) #2053/1250
Metadata
Release files for prymbr 0.0.9.4
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 |
|---|---|---|---|---|
| prymbr-0.0.9.4.tar.gz | 3.6 kB | Without provenance | Details for prymbr-0.0.9.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prymbr-0.0.9.4-py3-none-any.whl | Python 3 | none | any | Details for prymbr-0.0.9.4-py3-none-any.whl |
Total release size: 7.5 kB
Release files / prymbr-0.0.9.4.tar.gz
| Download URL | prymbr-0.0.9.4.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fab664943f973b4e0dd6d0375b54ead4aad64e6fdf93ea58e1ad0990c9c763a
|
|
BLAKE2b-256 checksum How to use checksums |
27fdab14f49f3f80d80496a8262263257d1f31b5b365ac052c5a23dccd12a55f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / prymbr-0.0.9.4-py3-none-any.whl
| Download URL | prymbr-0.0.9.4-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d11d5510b4ce47eaca193bc74ad7f02f7f65be3c0e104bea32d4afe57976e1c7
|
|
BLAKE2b-256 checksum How to use checksums |
67bb4af4ba213845fcfaace0424277b502c06855d9da2c398fd6bd002b52debd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for prymbr 0.0.9.4
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.