- 3.0.1 core module.
PreCalculatedPrimeTable Class Reference

#include <prime_tables.h>

Inheritance diagram for PreCalculatedPrimeTable:
PrimeTable

Public Member Functions

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

Constructor & Destructor Documentation

PreCalculatedPrimeTable::PreCalculatedPrimeTable ( int  max)
inlineexplicit
PreCalculatedPrimeTable::~PreCalculatedPrimeTable ( )
inlineoverride

Member Function Documentation

bool PreCalculatedPrimeTable::IsPrime ( int  n) const
inlineoverridevirtual

Implements PrimeTable.

References n.

int PreCalculatedPrimeTable::GetNextPrime ( int  p) const
inlineoverridevirtual

Implements PrimeTable.

References i, and n.


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