MCPcopy Create free account
hub / github.com/andeya/algorithm / IsPrimeUint64

Function IsPrimeUint64

mathutil/primes.go:89–168  ·  view source on GitHub ↗

IsPrimeUint64 returns true if n is prime. Typical run time is few tens of µs. SPRP bases: http://miller-rabin.appspot.com

(n uint64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

NextPrimeUint64Function · 0.85
BenchmarkIsPrimeUint64Function · 0.85
TestIsPrimeUint64Function · 0.85
TestProbablyPrimeBigIntFunction · 0.85

Calls 3

IsPrimeUint16Function · 0.85
ProbablyPrimeUint32Function · 0.85
ProbablyPrimeUint64_32Function · 0.85

Tested by 5

BenchmarkIsPrimeUint64Function · 0.68
TestIsPrimeUint64Function · 0.68
TestProbablyPrimeBigIntFunction · 0.68