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