libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
prime_numbers.hpp File Reference
#include "config.h"
#include <algorithm>
#include <bitset>
#include <vector>
Include dependency graph for prime_numbers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  jmmcg::LIBJMMCG_VER_NAMESPACE::mpl::sieve_of_eratosthenes< E, MN >
 

Namespaces

namespace  jmmcg
 Link with -lrt to include these functions.
 
namespace  jmmcg::LIBJMMCG_VER_NAMESPACE
 
namespace  jmmcg::LIBJMMCG_VER_NAMESPACE::dyn
 
namespace  jmmcg::LIBJMMCG_VER_NAMESPACE::mpl
 

Typedefs

typedef std::vector< unsigned long long > jmmcg::LIBJMMCG_VER_NAMESPACE::dyn::primes_colln
 

Functions

primes_colln jmmcg::LIBJMMCG_VER_NAMESPACE::dyn::sieve_of_eratosthenes (primes_colln::size_type max_num) noexcept(false)
 Find all of the prime numbers in the range [2...max_num) using the Sieve of Eratosthenes. More...