Skip to main content

quadratic-sieve

An implementation of quadratic sieve algorithm for factorization.

Technologies

Technologies used:

  • Python version: 3.9.1
  • numpy version: 1.20.1

Development:

  • py.test version: 6.2.2
  • wheel version: 0.36.2

Install

$ pip install quadratic_sieve

Run

$ quadratic_sieve 12666334082118686111

Running options

usage: quadratic_sieve [-h] [-b SMOOTHNESS] [-s BASE_SIZE] [-l] n

positional arguments:
  n                     Number to factorize.

optional arguments:
  -h, --help            show this help message and exit
  -b SMOOTHNESS, --smoothness SMOOTHNESS
                        Set smoothness bound.
  -s BASE_SIZE, --base_size BASE_SIZE
                        Set the size of generated QS base.
  -l, --loud            Display messages while computing.

Development

Testing

Running the tests:

$ pip install pytest
$ pytest

Distribution building

$ pip install wheel
$ python setup.py bdist_wheel

Installing the built distribution

$ pip install dist/quadratic_sieve-0.1.1-py3-none-any.whl

More information about the quadratic sieve algorithm:

Metadata

Release files for quadratic-sieve 0.1.2

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

Built distribution (wheel)

Table of built distributions (wheels) for quadratic-sieve 0.1.2
File Interpreter ABI Platform
quadratic_sieve-0.1.2-py3-none-any.whl Python 3 none any Details

Release files / quadratic_sieve-0.1.2-py3-none-any.whl

Download URL quadratic_sieve-0.1.2-py3-none-any.whl
Size 26.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
faecd1e01d939d380ecf978cad751644666ca91eab8377e0c1f6171900aad3aa
BLAKE2b-256 checksum
How to use checksums
e6fffd279411835d85bc0ef1d4284d20233e52d2be33fae9923fccd3e71aa484
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.1.2 This release

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