Skip to main content

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.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prymbr 0.0.9.3
File Size Uploaded
prymbr-0.0.9.3.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for prymbr 0.0.9.3
File Interpreter ABI Platform
prymbr-0.0.9.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / prymbr-0.0.9.3.tar.gz

Download URL prymbr-0.0.9.3.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
acff94302ea7ff8bcaafb43477043723f6db562dde26d40e77c08d5f87df3d1d
BLAKE2b-256 checksum
How to use checksums
5dc2ee19823b3efb153f98cf8923dd59189dc3473c9aecc07c6e07a65a696f9b
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.3-py3-none-any.whl

Download URL prymbr-0.0.9.3-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c10d5d5ab9accf312c12c77dabcd68b48fce31d4a61e0629209d9e61f5d6796
BLAKE2b-256 checksum
How to use checksums
d62b8102e5a755f6a92a382e8a7c8a87ee330b2edb3beffd67c1b77529738838
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release history Release notifications | RSS feed

This release

0.0.9.3 This release

2 release files

0.0.9

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page