Show that integer division, $a$ div $b$, and remainder, $a \bmod b$, are primitive recursive. For two integers $a$ and $b$, with $b>0$, the so-called div-mod identity holds:
$$
a=(a \operatorname{div} b) b+(a \bmod b) .
$$
Furthermore, we have
$$
0 \leq(a \bmod b)<b .
$$
(In Mathematica these two functions are Quotient $[a, b]$ and Mod $[a, b]$.)