Library for finding prime factorizations and primality
Project description
wheel_factorize
Wheel factorization is an improvement of trial division method for integer factorization. This project is the Python implementation of wheel factorization.
Usage
from wheel_factorize import WheelFactor as WF
wf = WF(3) # basis size
print(wf.factors(10))
print(wf.factors(31))
print(wf.factors(22222222222))
print(wf.is_prime(9999991))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wheel_factorize-1.0.0.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for wheel_factorize-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebf2371b8af24f8e7e30465d973b1150df1d7e917ff083a7bfac6d4039eb8641 |
|
MD5 | 1c9020a571127f593d2c26b10d38d09e |
|
BLAKE2b-256 | f3098d19519cecaf2d6dc069fd2d5b761d9f856656315ff37ebe63a8b14a9405 |