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 182 letters) (Sieve of Eratosthenes)

inspired by http://twitter.com/javascripter/statuses/8367943818
ignore warning version (182 letters)
Get Adobe Flash player
by psyark 01 Feb 2010
/**
 * Copyright psyark ( http://wonderfl.net/user/psyark )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/mdEi
 */

// 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 (182 letters)
package{import flash.display.*;public class C extends Sprite{function C(c=1){with(graphics)for(a=[];c++<1E3;)for(d=c;!a[c]&&d<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(c=1){
			with(graphics)
				for(a=[];c++<1E3;)
					for(d=c;!a[c]&&d<1E3;drawRect(c%10*4,c/10<<2,4,4))beginFill(a[d+=c]=1)
		}
	}
}
*/