package
Version:
v0.37.0
Opens a new window with list of versions in this module.
Published: Oct 31, 2025
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Index returns the index of the prime, or if p is not prime then the index below the next highest prime
Iter returns an iterator over all Primes
Iterr returns an iterator over a range of index values
Len returns the length of the list of primes
MakePrimes finds and returns all primes <= limit
Nth returns the nth prime
Pi returns the number of primes below (and including) n
Prime returns true if p is a prime
PrimeMax returns the largest prime in the list of primes
SlowPrime returns whether a number is prime or not, using a brute force search
Source Files
¶
Click to show internal directories.
Click to hide internal directories.