TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
Get list of prime numbers. More...
#include <iostream>
#include <vector>
Go to the source code of this file.
Functions | |
std::vector< int > | primes (size_t max) |
int | main () |
Get list of prime numbers.
Definition in file prime_numbers.cpp.
int main | ( | void | ) |
main function
Definition at line 34 of file prime_numbers.cpp.
std::vector< int > primes | ( | size_t | max | ) |
Generate an increasingly large number of primes and store in a list
Definition at line 12 of file prime_numbers.cpp.