Documentation ¶
Index ¶
- func CheckPrimality(number *big.Int) bool
- func DisplayFailPretty(number *big.Int, timeTaken time.Duration)
- func DisplayPrimePretty(number *big.Int, timeTaken time.Duration)
- func GetCurrentId() uint64
- func GetTotalPrimeCount() uint64
- func Round(x, unit float64) float64
- func ShowCurrentCount()
- type Prime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPrimality ¶
ChecknPrimality checks whether number is a prime.
func DisplayFailPretty ¶
DisplayFailPretty displays failed prime generations nicely.
func DisplayPrimePretty ¶
DisplayPrimePretty displays successful prime generations nicely.
func GetCurrentId ¶
func GetCurrentId() uint64
GetCurrentId returns the current id, rounded to nearest hundred
func GetTotalPrimeCount ¶
func GetTotalPrimeCount() uint64
GetTotalPrimeCount finds the number of lines in each file
func ShowCurrentCount ¶
func ShowCurrentCount()
ShowCurrentCount displays the n number of primes calculated
Types ¶
Click to show internal directories.
Click to hide internal directories.