Implements functions dealing with prime numbers.
Namespaces | |
walberla | |
\file TimestepTracker.h \ingroup lbm \author Frederik Hennig frede.nosp@m.rik..nosp@m.henni.nosp@m.g@fa.nosp@m.u.de | |
walberla::math | |
Functions | |
bool | walberla::math::isPrime (const uint_t n) |
Query if n is prime. More... | |
std::vector< uint_t > | walberla::math::getPrimes (const uint_t n) |
Determine prime numbers up to an upper bound. More... | |
std::vector< uint_t > | walberla::math::getPrimeFactors (const uint_t n) |
Gets all prime factors of a number. More... | |
std::set< uint_t > | walberla::math::getDevisors (const uint_t n) |
Gets all devisors of a number n. More... | |