GitHunt
RS

rstreet85/SundaramPlusPlus

C++ implementation of the Sieve of Sundaram algorithm

Sieve of Sundaram

Updated 09-16-2017

The Sieve of Sundaram algorithm implemented in C++. Finds all primes below input n, returns largest prime as output. More information.

Input: 1000
Output: 997

Languages

C++100.0%
Created September 17, 2017
Updated September 17, 2017