Note: Due to technical limitations, thumbnails of high resolution GIF images such as this one will not be animated.
This file is from Wikimedia Commons and may be used by other projects.
The description on its file description page there is shown below.
Summary
DescriptionSieve of Sundaram Animated.gif
English: Animation that visualizes the "Sieve of Sundaram" algorithm.
The Sieve of Sundaram is an algorithm for finding all prime numbers up to a specified integer. One starts with a list of integers 1 to n. From the list, numbers of the form i + j + 2ij where 1 <= i <= j and i + j + 2ij <= n are removed. The remaining numbers in the list are then doubled and incremented by one.
Various optimizations of the algorithm exist, but this visualization shows the verbatim, unoptimized implementation.
This visualization is inspired by Sebastian Koppehel's visualization of the Sieve of Eratosthenes (link).
to share – to copy, distribute and transmit the work
to remix – to adapt the work
Under the following conditions:
attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.