#include <prime_tables.h>
Definition at line 56 of file prime_tables.h.
virtual int OnTheFlyPrimeTable::GetNextPrime |
( |
int |
p | ) |
const |
|
inlinevirtual |
virtual int OnTheFlyPrimeTable::GetNextPrime |
( |
int |
p | ) |
const |
|
inlinevirtual |
virtual int OnTheFlyPrimeTable::GetNextPrime |
( |
int |
p | ) |
const |
|
inlinevirtual |
virtual bool OnTheFlyPrimeTable::IsPrime |
( |
int |
n | ) |
const |
|
inlinevirtual |
Implements PrimeTable.
Definition at line 58 of file prime_tables.h.
References i.
59 if (n <= 1)
return false;
61 for (
int i = 2;
i*
i <= n; i++) {
63 if ((n % i) == 0)
return false;
virtual bool OnTheFlyPrimeTable::IsPrime |
( |
int |
n | ) |
const |
|
inlinevirtual |
Implements PrimeTable.
Definition at line 58 of file prime_tables.h.
References i.
59 if (n <= 1)
return false;
61 for (
int i = 2;
i*
i <= n; i++) {
63 if ((n % i) == 0)
return false;
virtual bool OnTheFlyPrimeTable::IsPrime |
( |
int |
n | ) |
const |
|
inlinevirtual |
Implements PrimeTable.
Definition at line 58 of file prime_tables.h.
References i.
59 if (n <= 1)
return false;
61 for (
int i = 2;
i*
i <= n; i++) {
63 if ((n % i) == 0)
return false;
The documentation for this class was generated from the following file:
- proxygen/fizz/build_/gtest/src/gtest/googletest/samples/prime_tables.h