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

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

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