Source: https://www.ces-stexupery.be/institut-sainte-marie/espace-interactif/mathematique/vandenbruaenne-andre/prim_integ_new4.pdf