Prime number calculator in C using GMP