Skip to main content

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)

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

primes_gpavel-1.2.zip (1.7 kB view hashes)

Uploaded Source

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