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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| prymbr-0.0.9.2.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prymbr-0.0.9.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / prymbr-0.0.9.2.tar.gz
| Download URL | prymbr-0.0.9.2.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
833dd21865251cb858510dbfc6b70bc52a71c1f6514154531e48f00ff3d78e43
|
|
BLAKE2b-256 checksum How to use checksums |
55daf887b1e76661e41463120d58dca16cfd03866880fab875bb691a920e1b39
|
| 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.2-py3-none-any.whl
| Download URL | prymbr-0.0.9.2-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fdc5d67cad9967436a46cadb83153879ea9d3843ff337dba27bf79f6742cc0bf
|
|
BLAKE2b-256 checksum How to use checksums |
66f54d6ec7d5bbc0dcf1e6fc1898b6e8b2c117a3cc2033272467861eee88e553
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|