19 #ifndef __TPIE_PRIME_H__
20 #define __TPIE_PRIME_H__
50 typedef uint64_t hash_type;
68 #endif //__TPIE_PRIME_H__
bool is_prime(size_type i)
Check if i is a prime.
hash_type prime_hash(const std::string &s)
Calculate a fairly good string hash based on prime numbers.
Generic internal array with known memory requirements.
size_t next_prime(size_t i)
Get next prime.
void finish_prime()
Used by tpie_finish to deinitialize the prime number database.
Miscellaneous utility functions.
void init_prime()
Used by tpie_init to initialize the prime number database.