39 #ifndef PRIMES_TEST_HPP
40 #define PRIMES_TEST_HPP
97 void miller_rabin(uint64_t iters, uint64_t min_val, uint64_t max_val);
99 bool witness(uint64_t n, uint64_t d, uint64_t a, uint64_t s);
102 bool AKS(uint64_t n);
114 uint64_t
mod_mul(uint64_t a, uint64_t b, uint64_t m);
116 uint64_t
mod_pow(uint64_t a, uint64_t b, uint64_t m);
126 uint64_t
ETF(uint64_t n);
bool miller_rabin_prime(uint64_t n, uint64_t iters)
Modified primes algorithm.
uint64_t jacobian_number(uint64_t a, uint64_t n)
uint64_t mod_mul(uint64_t a, uint64_t b, uint64_t m)
bool carmichael_num(uint64_t n)
bool witness(uint64_t n, uint64_t d, uint64_t a, uint64_t s)
void miller_rabin(uint64_t iters, uint64_t min_val, uint64_t max_val)
Miller-Rabin driver, prints values that satisfy conditions.
uint64_t mod_pow(uint64_t a, uint64_t b, uint64_t m)
bool is_prime(uint64_t n)
Determine if an integer is prime.
bool compute_miller_rabin(uint64_t d, uint64_t n)
Algorithm determining liklihood a number is prime.
bool solovoy_strassen(uint64_t p, uint64_t iters)
The source C++ openGPMP namespace.