Lines Matching refs:primes
320 static const size_t primes[] = {
329 return primes[0];
331 if (current < primes[sizeof(primes)/sizeof(*primes) - 2]) {
333 for (i = 0; primes[i] != 0; ++i)
334 if (primes[i] > current)
335 return primes[i];
339 /* We ran out of primes, so invent a new one. The following
340 * gives primes until about 17M elements (and then some more
348 if (current <= primes[0])
349 return primes[0];
351 if (current <= primes[sizeof(primes)/sizeof(*primes) - 2]) {
354 for (i = 0; primes[i] != 0; ++i) {
355 if (primes[i] >= current)
357 prev = primes[i];