In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Enumerate Prime Numbers (ignore warnings 181 letters) (Sieve of Eratosthenes)

inspired by http://twitter.com/javascripter/statuses/8367943818
ignore warning version (181 letters)
/**
 * Copyright o8que ( http://wonderfl.net/user/o8que )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/5QU4
 */

// forked from psyark's Enumerate Prime Numbers (ignore warnings 182 letters) (Sieve of Eratosthenes)
// forked from nitoyon's Enumerate Prime Numbers (ignore warnings 184 letters) (Sieve of Eratosthenes)
// forked from o8que's Enumerate Prime Numbers (ignore warnings 185 letters) (Sieve of Eratosthenes)
// forked from psyark's Enumerate Prime Numbers (ignore warnings 189 letters) (Sieve of Eratosthenes)
// forked from nitoyon's Enumerate Prime Numbers (ignore warnings 210 letters) (Sieve of Eratosthenes)
// forked from nitoyon's Enumerate Prime Numbers (Sieve of Eratosthenes)
// inspired by http://twitter.com/javascripter/statuses/8367943818
// ignore warning version (181 letters)
package{import flash.display.*;public class C extends Sprite{function C(){with(graphics)for(d=c=2,a=[];a[c]||d>2E3?(d=++c)<1E3:!drawRect(c%10*4,c/10<<2,4,4);)beginFill(a[d+=c]=1)}}}
/*
package{
	import flash.display.*;
	public class C extends Sprite{
		function C(){
			with(graphics)
				for(d=c=2,a=[];a[c]||d>2E3?(d=++c)<1E3:!drawRect(c%10*4,c/10<<2,4,4);)
					beginFill(a[d+=c]=1)
		}
	}
}
*/