This a simple algorithm for generating consecutive primes not exceeding any given integer n > 1. It was probably invented in ancient Greece arround 200 b.c.

What is the maximum number to look for?: