From this paper: http://www.cse.iitk.ac.in/users/manindra/algebra/primality_v6.pdf Should we skip this and just implement the even-more optimized algorithms of DJB?