Algorithms_in_C++ 1.0.0
Set of algorithms implemented in C++.
|
Compute prime numbers upto 1 billion. More...
#include <cstring>
#include <iostream>
Functions | |
void | Sieve (int64_t n) |
int | main () |
Variables | |
char | prime [100000000] |
Compute prime numbers upto 1 billion.
int main | ( | void | ) |
Main function
void Sieve | ( | int64_t | n | ) |
Perform Sieve algorithm
char prime[100000000] |
array to store the primes