package
0.0.13
Repository: https://github.com/erikbryant/util-golang.git
Documentation: pkg.go.dev

# Functions

GeneratePrimesGob finds, packs, and saves primes to a GOB file.
Load reads the contents of a file into PackedPrimes.
PackedIndex returns the index in PackedPrimes of n, or -1 if not found.
Pi is the prime counting function, returning the number of primes below n https://en.wikipedia.org/wiki/Prime-counting_function.
Prime returns true if number is prime.
Save writes PackedPrimes to a file.
SlowPrime returns whether a number is prime or not, using a brute force search.

# Constants

MaxPrime is the highest value up to which we will search for primes.

# Variables

PackedPrimes is a list of the first n prime numbers.
PackedPrimesEnd is the index of the final value in the PackedPrimes slice.