Home arrow Studies arrow Number Theory arrow Prime Numbers
Prime Numbers, How to Calculate? PDF Print


This algorithm finds prime numbers from 2 to n using sieve algorithm. Input is an integer n. Output is an array. Array contains  zeros and numbers. Every number other than zero is a prime number.

 

The Algorithm

 

 

 

 

 

 

Copyright 2003-2007 by Chasan Chouse.

Locations of visitors to this page