Sieve of Eratosthenes

Original. Time length: 1:41
Edit 1 by brian0918. Time length: 0:35
Reason
Ran across this at WP:RD/C. I was impressed- not necessarily by the algorithm but how necessary the image was to the article for it to make any sense at all. This is the very definition of encyclopedic for me.. so that's why it's nom'd. Preemptively answering an objection (this puzzled me too), it only starts looking for multiples of the prime at that prime squared and stops counting multiples once you've found all primes from 1 to the square root of your upper bound. Also the animation isn't as slow as it seems, let it load.
Proposed caption
A tabular method for determining primes.
Articles this image appears in
Sieve of Eratosthenes
Creator
de:Benutzer:SKopp
(a) it takes an awfully long time to fill in the multiples of 2 - I almost got too bored to finish watching it. Could be speeded up? It only needs to take a second or two doing this, I think, followed by perhaps a second pause before starting the next number.
(b) I'd like it to be clearer when it is marking a prime, and when it is marking excluded numbers - I got confused when it started colouring in lots of numbers in purple. Perhaps it could circle primes, or cross out known non-primes, and keep colouring in the box for the other purpose. TSP 22:41, 24 September 2007 (UTC)[reply]
Agreed. Needs to be much faster after the first couple of multiples. Also, the fact that it starts at the multiple squared is confusing and not self-explanatory...yet. Stevage 02:49, 25 September 2007 (UTC)[reply]
I was going to make the same two comments. Perhaps the primes could be marked with a circle around the number or something instead of just yet another colour. Also, perhaps all the filled in squares could be faded out at that point. Come to think of it, it would be even much clearer if all the multiples were marked by an X over the number, indicating clearly that these numbers were rejected. Stevage 03:12, 26 September 2007 (UTC)[reply]
Calibas, you know that is not true.Cuddlyable3 09:09, 20 October 2007 (UTC)[reply]

Promoted Image:Animation Sieve of Eratosth-2.gif MER-C 03:58, 3 October 2007 (UTC)[reply]

Post-promotion discussion

There is one side where this image could be improved: it could give an explanation on the "inconsistencies" (a text on the side explaining that it starts crossing at prime squared) and why it stops "prematurely" (a text on the side explaining that since the current prime is greater than the root of 120 it'd stop now). I'd have done this myself, if I weren't in a tight deadline for school work.

I agree that just 3 colours would work best here: one for numbers not crossed out (e.g. blue), one for numbers crossed out in previous phases (e.g. grey), one for numbers crossed out in the current phase (e.g. red). At the end of each phase the red would change to grey. The dimensions of the rectangle don't matter too much — but I personally think it would be handy to have it be 12 squares wide, so that the pattern for the introductory small multiples is more obvious. As for starting at 2p versus p2, I think as long as we're showing things being crossed out multiple times, it makes more sense to start at 2p (this variation doesn't affect the asymptotic performance of the algorithm anyway). Dcoetzee 20:05, 26 May 2008 (UTC)[reply]

I uploaded a non-overlapping version over this image before looking here, I didn't think there was a reason for the inconsistencies on the image. (I had only read File talk:Animation Sieve of Eratosth-2.gif, where nearly everyone seemed to agree that it needed a change). If it's an important feature of the old version, feel free to revert the revision. -- 6Sixx (talk) 07:10, 5 March 2009 (UTC)[reply]

reverted. The changed version spawned more than one dispute at Talk:Sieve of Eratosthenes and more generally a FP should not be radically changed without previous discussion. And this really is the wrong place to discuss this: any further discussion should take place at the above article talk page or some other appropriate venue.--JohnBlackburnewordsdeeds 02:14, 1 November 2011 (UTC)[reply]