libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
|
Namespaces | |
namespace | basic |
namespace | builtin |
namespace | lookup |
namespace | private_ |
namespace | unroll |
Classes | |
struct | fibonacci |
Typedefs | |
typedef std::vector< unsigned long long > | primes_colln |
Functions | |
primes_colln | 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... | |
typedef std::vector<unsigned long long> jmmcg::LIBJMMCG_VER_NAMESPACE::dyn::primes_colln |
Definition at line 28 of file prime_numbers.hpp.
|
inlinenoexcept |
Find all of the prime numbers in the range [2...max_num) using the Sieve of Eratosthenes.
Complexity: time: O(n(log(log(n))))
max_num | The largest number in the range up to which the primes should be found. |
Definition at line 38 of file prime_numbers.hpp.