30static const unsigned kPrimes[] = {
32 257, 521, 1031, 2053, 4099,
33 8209, 16411, 32771, 65537, 131101,
34 262147, 524309, 1048583, 2097169, 4194319,
35 8388617, 16777259, 33554467, 67108879, 134217757,
36 268435459, 536870923, 1073741827, 2147483659, 4294967291
38static const unsigned kNumPrimes =
sizeof(kPrimes) /
sizeof(kPrimes[0]);
44 for (
unsigned index = 0; index < kNumPrimes; ++index) {
45 if (kPrimes[index] >= n)
return kPrimes[index];
47 return kPrimes[kNumPrimes - 1];
unsigned dict_prime_geq(unsigned n)