Skip to main content

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.

Wikipedia Link

Source

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


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)

Uploaded Source

Built Distribution

wheel_factorize-1.0.1-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page