openGPMP
Open Source Mathematics Package
|
#include <chrono>
#include <cmath>
#include <iostream>
#include <openGPMP/core/threads.hpp>
#include <openGPMP/nt/prime_gen.hpp>
#include <openGPMP/nt/prime_test.hpp>
#include <vector>
Go to the source code of this file.
Functions | |
void | testing_miller (std::vector< int64_t > nums) |
void | testing_miller_thread (std::vector< int64_t > nums) |
void | testing_new_miller (std::vector< int64_t > nums) |
int | main () |
int main | ( | void | ) |
Definition at line 120 of file primes.cpp.
References gpmp::PrimalityTest::carmichael_num(), gpmp::PrimalityTest::is_prime(), gpmp::PrimalityTest::miller_rabin(), gpmp::PrimalityTest::miller_rabin_prime(), gpmp::PrimalityTest::mod_pow(), gpmp::PrimalityTest::solovoy_strassen(), testing_miller(), testing_miller_thread(), and testing_new_miller().
void testing_miller | ( | std::vector< int64_t > | nums | ) |
Definition at line 16 of file primes.cpp.
References gpmp::PrimalityTest::miller_rabin_prime().
Referenced by main().
void testing_miller_thread | ( | std::vector< int64_t > | nums | ) |
Definition at line 41 of file primes.cpp.
References gpmp::core::ThreadPool::enqueue(), and prim.
Referenced by main().
void testing_new_miller | ( | std::vector< int64_t > | nums | ) |
Definition at line 76 of file primes.cpp.
References gpmp::PrimalityTest::miller_rabin_prime(), and prim.
Referenced by main().