semvec/pypi-packages huggingface dataset:
mathprimes 1.0.2
Well documented, super fast, prime number methods using mathematical algorithms.
License: MIT
Requires Python: >=3.8,<4.0

# Primes

An implementation of prime number methods useful for programming.

Inlcuding `is_prime(47)  # -> True`, and `prime_factorization(8345)  # -> {1669: 1, 5: 1}`.


## Installation

Use `pip` or `poetry` or your other favorite package manager that supports installing packages from [PyPI](https://pypi.org)!

```py
pip install mathprimes
# Or
poetry add mathprimes
# Etc
```

## Usage
```py
from mathprimes import is_prime, prime_factorization
```


## Documentation
See `mathprimes.py` for function type hints, and function doc strings.