pari: use gmp

Closes #29072.