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!

Functions for dealing with primes

Project Description

A collection of functions that are helpful for dealing with prime numbers

isPrime(n) takes a number and returns true if it is a positive integer and prime.

factors(n) takes a number and returns a list of its factors (or the factors of the number truncated), including repetition

primes(n) returns a list of all primes less than n (if n is positive)

Release History

Release History

This version
History Node

1.2

History Node

1.1

History Node

1.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
primes_gpavel-1.2.zip (1.7 kB) Copy SHA256 Checksum SHA256 Source Dec 8, 2012

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