Algorithms_in_C 1.0.0
Set of algorithms implemented in C.
|
Prime Sieve algorithm implementation. More...
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
Functions | |
void | prime (int *p) |
Prime Sieve works in O(nlogn) time. More... | |
int | count (int *arr, const int size) |
Count func counts the number of prime numbers. More... | |
static void | test () |
Test implementations. More... | |
int | main (int argc, const char *argv[]) |
Main function. More... | |
Variables | |
const unsigned long long | MAX_SIZE = 1000000 |
for assert for standard input output for general purpose standard library | |
Prime Sieve algorithm implementation.