Primes and Programming An Introduction to Number Theory with Computing - Giblin, Peter (Cambridge University Press, 1993)