Algorithms_in_C 1.0.0
Set of algorithms implemented in C.
Loading...
Searching...
No Matches
prime_seive.c File Reference

Prime Seive algorithm implementation. More...

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for prime_seive.c:

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
 

Detailed Description

Prime Seive algorithm implementation.

Author
Divyansh Kushwaha