Source: https://blogdemaths.files.wordpress.com/2014/12/theoreme_des_deux_carres_de_fermat.pdf