Skip to content

esmith-oss/Sieve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sieve of Eratosthenes

This repository explores the speed of some minor improvements that can be made to the Sieve of Eratosthenes.

Usage

One must run make and then run an executable with the command line argument indicating the upper limit for prime numbers.

make

./<executable> <prime_limit>

Executables

The improvements are cumulative. Every executable implements improvements made by executables above it.

basic.x implements a basic Sieve.

half_limit.x marks out multiples of primes only if the prime number is less than half of <prime_limit>.

square_start.x starts marking multiples of a prime number at the square of the prime number.

no_evens.x does not bother with even numbers.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published