sarrvesh / sieveOfEratosthenes

C implementation of the Sieve of Eratosthenes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sieveOfEratosthenes

Build Status

The sieve of Eratosthenes is a simple algorithm to generate a list of prime numbers upto a given limit. This procedure is attributed to the Greek mathematician Eratoshthenes of Cyrene.

Dependencies

Installation

Typical installation command:

mkdir build
cd build
cmake ../
make

If GMP is installed in a non-default location, you should run cmake with:

cmake ../ -DGMP_ROOT_DIR=<GMP install location>

About

C implementation of the Sieve of Eratosthenes

License:GNU General Public License v3.0


Languages

Language:C 91.1%Language:CMake 8.9%