Sieve of Atkin

The Sieve of Atkin and Bernstein is a modern algorithm to compute the prime numbers smaller than N. In the description below, we follow the Wikipedia Article SieveOfAtkin. We describe the program flow both as text, and graphically.

Program

Function Flip(list SieveList, int n)

Main Program

Main Program as graph

The Sieve of Atkin