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.1.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for wheel_factorize-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73c100629a7d207b8bb397a9257cfb94e1b7244bce8357ec71ffaa9d60a71b40 |
|
MD5 | 168e1fa420ee4b58e447a40b7179ee7b |
|
BLAKE2b-256 | 707178d38d51c4f66ab844d31f9ce10566bd074950962cffc8209e4abf18d545 |