Lines Matching defs:primes
109 mpz_t n, np, temp, primes[NRP];
122 mpz_init (primes[i]);
127 nrprimes = mpz_get_ui (np) % NRP + 1; /* 1-NRP unique primes */
135 primebits = mpz_get_ui (np) % 100 + 3; /* 3-102 bit primes */
136 mpz_urandomb (primes[j], rands, primebits);
137 mpz_nextprime (primes[j], primes[j]);
141 if (mpz_cmp (primes[j], primes[k]) == 0)
184 mpz_pow_ui (n, primes[0], exp[0]);
187 mpz_pow_ui (temp, primes[j], exp[j]);
198 gmp_printf("n = %Zu\nprimes[0] = %Zu\nexp[0] = %lu\n", n, primes[0], exp[0]);
227 mpz_clear (primes[i]);