package
Version:
v0.39.0
Opens a new window with list of versions in this module.
Published: Nov 1, 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
¶
FindPrimes finds and returns all primes <= limit
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
Nth returns the value of the nth prime
Pi returns the number of primes up to and including n
Prime returns true if p is a prime
PrimeMax returns the largest prime in the list of primes
PrimeSlow returns whether a number is prime or not, used for primes > PrimeMax()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.