outsource prime-scanning to gmp