Source: https://mathonomie.files.wordpress.com/2020/04/jcc-2020-04-28-tsspe-nombres-premiers-exercices.pdf