KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
Gives a prime number before or after given number. More...
#include <prime_numbers.h>
Public Member Functions | |
Life Cycle | |
PrimeNumbers () | |
Default constructor. More... | |
PrimeNumbers (PrimeNumbers const &rOther)=delete | |
Copy constructor. More... | |
virtual | ~PrimeNumbers () |
Destructor. More... | |
Operators | |
PrimeNumbers & | operator= (PrimeNumbers const &rOther)=delete |
Assignment operator. More... | |
std::size_t | operator[] (std::size_t Index) |
Static Public Member Functions | |
Access | |
static std::size_t | GetNumberOfPreCalculatedPrimes () |
static std::size_t | LargestPreCalculatedPrime () |
static std::size_t | GetPreCalculatedPrime (std::size_t Index) |
Inquiry | |
static bool | IsPrime (std::size_t TheNumber) |
Gives a prime number before or after given number.
Has an array of precalculated value up to 1e8 and calculates the rest.
|
inline |
Default constructor.
|
delete |
Copy constructor.
|
inlinevirtual |
Destructor.
|
inlinestatic |
|
inlinestatic |
|
static |
|
inlinestatic |
|
delete |
Assignment operator.
|
inline |