Elementary Number Theory: Primes, Congruences, and Secrets by William Stein This book was published November 2008 by Springer-Verlag, and available for purchase. See ent.pdf for the actual pdf of the book.