Source: https://web.williams.edu/Mathematics/sjmiller/public_html/BrownClasses/153/SarahM_Mersenne.pdf