This is a file from the Wikimedia Commons

File:New Animation Sieve of Eratosthenes.gif

From Wikipedia

New_Animation_Sieve_of_Eratosthenes.gif(554 × 445 pixels, file size: 43 KB, MIME type: image/gif, looped, 159 frames, 36 s)



English: Animation that visualizes the "Sieve of Eratosthenes" algorithm.

The Sieve of Eratosthenes is an method for efficiently finding all prime numbers up to a number, 120 in this case, by eliminating all multiples of successive primes. It uses the common optimization of starting at p2 for each prime p, as all non-primes (composites) up to p2 were found in previous passes. Because of this it only needs to consider primes up to 7, because the square of the next prime 11 is 121, larger than any number here.

Date 27 December 2007
Source Own work. Inspired on a similar picture by SKopp.
Author M.qrius


I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
w:en:Creative Commons

attribution share alike

This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International, 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic license.
You are free:
  • 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.

You may select the license of your choice.


Add a one-line explanation of what this file represents

Items portrayed in this file


27 December 2007

File history

Click on a date/time to view the file as it appeared at that time.

current 20:17, 14 February 2012 Thumbnail for version as of 20:17, 14 February 2012554 × 445 (43 KB)Waldyriousrevert my change. there was actually a logic behind the missing values, see File talk:Sieve of Eratosthenes animation.gif
18:53, 30 April 2011 Thumbnail for version as of 18:53, 30 April 2011554 × 445 (44 KB)WaldyriousFix for consistency: all multiples now overlap the previous ones (previously, most of them did, but some didn't)
22:12, 27 December 2007 Thumbnail for version as of 22:12, 27 December 2007554 × 445 (43 KB)Mqrius{{Information |Description=Animation that visualizes the "Sieve of Eratosthenes" algorithm by M.qrius (selfmade). Inspired by similar picture from Skopp. |Source=self-made |Date=2007-12-27 |Author= M.qrius |Permission=- |other_versions=-
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Global file usage

The following other wikis use this file: