Prime Numbers
Implementing all the algorithms from Prime Numbers: A Computational Perspective by Carl Pomerance and Richard Crandall.
Chapter 2 - Number-Theoretical Tools: code
Implementing all the algorithms from Prime Numbers: A Computational Perspective by Carl Pomerance and Richard Crandall.
Chapter 2 - Number-Theoretical Tools: code