Primetest adjusted to test mod_exp