QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
PrimeNumbers Class Reference

Prime numbers calculator. More...

#include <primenumbers.hpp>

+ Collaboration diagram for PrimeNumbers:

Static Public Member Functions

static BigNatural get (Size absoluteIndex)
 Get and store one after another. More...
 

Private Member Functions

 PrimeNumbers ()=default
 

Static Private Member Functions

static BigNatural nextPrimeNumber ()
 

Static Private Attributes

static std::vector< BigNaturalprimeNumbers_
 

Detailed Description

Prime numbers calculator.

Taken from "Monte Carlo Methods in Finance", by Peter Jäckel

Definition at line 45 of file primenumbers.hpp.

Constructor & Destructor Documentation

◆ PrimeNumbers()

PrimeNumbers ( )
privatedefault

Member Function Documentation

◆ get()

BigNatural get ( Size  absoluteIndex)
static

Get and store one after another.

Definition at line 47 of file primenumbers.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nextPrimeNumber()

BigNatural nextPrimeNumber ( )
staticprivate

Definition at line 58 of file primenumbers.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ primeNumbers_

std::vector< BigNatural > primeNumbers_
staticprivate

Definition at line 52 of file primenumbers.hpp.