- 3.0.1 core module.
OnTheFlyPrimeTable Class Reference

#include <prime_tables.h>

Inheritance diagram for OnTheFlyPrimeTable:
PrimeTable

Public Member Functions

bool IsPrime (int n) const override
 
int GetNextPrime (int p) const override
 
- Public Member Functions inherited from PrimeTable
virtual ~PrimeTable ()
 

Member Function Documentation

bool OnTheFlyPrimeTable::IsPrime ( int  n) const
inlineoverridevirtual

Implements PrimeTable.

References i, and n.

int OnTheFlyPrimeTable::GetNextPrime ( int  p) const
inlineoverridevirtual

Implements PrimeTable.

References PrimeTable::IsPrime(), and n.


The documentation for this class was generated from the following file: