Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Primes is a list of the first n prime numbers Primes []int // PrimesEnd is the index of the final value in the Primes slice PrimesEnd int )
Functions ¶
func MakePrimes ¶ added in v0.16.0
MakePrimes returns all primes <= maxPrime
func PackedIndex ¶
PackedIndex returns the index in Primes of n, or -1 if not found
func Pi ¶
Pi is the prime counting function, returning the number of primes below n https://en.wikipedia.org/wiki/Prime-counting_function
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.