Primes.h File Reference

Detailed Description

Declares functions dealing with prime numbers.

Author
Christian Godenschwager chris.nosp@m.tian.nosp@m..gode.nosp@m.nsch.nosp@m.wager.nosp@m.@fau.nosp@m..de
#include "core/DataTypes.h"
#include <set>
#include <vector>

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...