Source: http://maths-v-ovieve.blog.ac-lyon.fr/wp-content/uploads/sites/24/2017/02/contro%CC%82le-nombres-entiers-CORRECTION.pdf