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
Release history Release notifications | RSS feed
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 details)
File details
Details for the file primes_gpavel-1.2.zip.
File metadata
- Download URL: primes_gpavel-1.2.zip
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b665d7edbb1681f2bac132e7b8c85e9bf48b54041b5b0aa1285f54270b301d3
|
|
| MD5 |
98295f2927180d5b352b20e5e4811419
|
|
| BLAKE2b-256 |
0dd1c692b57325a514f2e34ee6773e067e498ab665803c2ce4b2335426fbd6ff
|