Source: https://www.pajhome.org.uk/crypt/rsa/contrib/RSA_Project.pdf