Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Fast prime factorization using the msieve library

Project Description

Pysieve is a simple wrapper of the msieve prime factorization library. It basically gives you a fast factor command and some utilities.

For now it is only tested on OSX with python 2.6 and msieve146 but it should work on Linux as well. It assumes that the msieve library is installed in a standard location (i.e /usr/local/lib, /usr/lib or on OSX with macports /opt/local/lib)

Functions in the package

  • factor(n): returns a list of the prime factors of n
  • dfactor(n): returns a list of distinct prime factors of n (no duplicates)
  • facExponents(n): returns a list of tuples, each containing a prime factor of n and its exponent

TODO

  • _pysieve is installed as seperate package. I somehow can’t
    define it to be a subpackage of pysieve (like pysieve._pysieve)

Credits

The msieve library can be downloaded at http://sourceforge.net/projects/msieve/

Release History

Release History

This version
History Node

0.5.1

History Node

0.5.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
PySieve-0.5.1.tar.gz (3.1 kB) Copy SHA256 Checksum SHA256 Source Sep 3, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting