8 #ifndef PROGS_SRC_COMMON_SIGMAODD_PRIMES__INLINE_HPP_ 9 #define PROGS_SRC_COMMON_SIGMAODD_PRIMES__INLINE_HPP_ 28 potential_prime_offsets_table_modulo() {
29 return array_potential_prime_offsets_modulo_;
37 potential_prime_offsets_table_nb() {
38 return array_potential_prime_offsets_nb_;
74 potential_prime_offsets_table_by_index(
unsigned int i) {
75 assert(i < potential_prime_offsets_table_nb());
77 return array_potential_prime_offsets_[i];
83 #endif // PROGS_SRC_COMMON_SIGMAODD_PRIMES__INLINE_HPP_ uint64_t nat_type
Type for natural number used in all code, on 64 bits.
prime_type odd_primes_table_last()
Return the last odd prime number in the precalculated table.
uint32_t prime_type
Type for prime number, particularly for the table of primes.
A lot of functions and stuffs to deal the sigma_odd problem and related stuffs.
const prime_type * odd_primes_table_ptr()
Return a pointer to the first number in the precalculated table.
prime_type odd_primes_table_by_index(unsigned int i)
Return the (i + 1)th odd prime number from the precalculated table.
constexpr unsigned int array_odd_primes_nb_
Number of odd prime numbers in the table array_odd_primes_.
constexpr unsigned int odd_primes_table_nb()
Return the number of odd prime numbers in the precalculated table.
prime_type * array_odd_primes_
Array of all odd prime numbers < 2^28 with a final 0. (Or < 2^16 if the macro PRIME16 is defined...