TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
Compute prime numbers upto 1 billion. More...
#include <cstring>
#include <iostream>
Go to the source code of this file.
Functions | |
void | Sieve (int64_t n) |
int | main () |
Variables | |
char | prime [100000000] |
Compute prime numbers upto 1 billion.
Definition in file primes_up_to_billion.cpp.
int main | ( | void | ) |
Main function
Definition at line 26 of file primes_up_to_billion.cpp.
void Sieve | ( | int64_t | n | ) |
Perform Sieve algorithm
Definition at line 13 of file primes_up_to_billion.cpp.
char prime[100000000] |
array to store the primes
Definition at line 10 of file primes_up_to_billion.cpp.