37 #ifndef GTEST_SAMPLES_PRIME_TABLES_H_ 38 #define GTEST_SAMPLES_PRIME_TABLES_H_ 48 virtual bool IsPrime(
int n)
const = 0;
59 if (n <= 1)
return false;
61 for (
int i = 2;
i*
i <= n;
i++) {
63 if ((n %
i) == 0)
return false;
70 for (
int n =
p + 1; n > 0; n++) {
106 for (
int i = 2;
i <= max;
i++) {
110 for (
int j = 2*
i; j <= max; j +=
i) {
123 #endif // GTEST_SAMPLES_PRIME_TABLES_H_
int i
Definition: pymoduletest.py:23
static bool fill(BlockchainDB *db, const crypto::hash &tx_hash, cryptonote::blobdata &tx, bool pruned)
Definition: blockchain.cpp:2491
int bool
Definition: stdbool.h:35
p
Definition: pymoduletest.py:75