Sieve of Sundaram

From Wikipedia, the free encyclopedia

In mathematics, the sieve of Sundaram is a simple deterministic algorithm for finding all prime numbers up to a specified integer. It was discovered by East Indian student S. P. Sundaram from Sathyamangalam in 1934.[1][2]

[edit] Algorithm

All the values in the form of z = i + j + 2ij are excluded from sequence of natural numbers,

where i = 1, 2, 3, ..., n and j = 1, 2, 3, ..., i.

The remaining numbers are doubled and incremented by one. The resulting sequence represents the sequence of odd primes (i.e., all primes except the only even prime 2).

[edit] See also

[edit] References

  1. ^ V. Ramaswami Aiyar (1934). "Sundaram's Sieve for Prime Numbers". The Mathematics Student 2: 73. ISSN 0025-5742. 
  2. ^ G. (1941). "Curiosa 81. A New Sieve for Prime Numbers". Scripta Mathematica 8: 164. 
Languages