Btw why didnt you use cump library? it seems to be gmp (mpz) compatible
CUMP is mpf not mpz, unfortunately (if it was a miner would already be done)
Exactly! It's floating point only and that doesn't help for big int+modulo math. GPU mining primecoins will create an optimized big int GPU library as a nice side effect.