Solutions to Silverman's "A Friendly Introduction to Number Theory" using Python