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

inspired by http://twitter.com/javascripter/statuses/8367943818
ignore warning version (189 letters)
Get Adobe Flash player
by psyark 31 Jan 2010
  • Related works: 1
  • Talk

    o8que at 01 Feb 2010 11:30
    withスコープ内で未定義変数へのアクセスがエラーにならないのは何故なんでしょうか?
    Embed
/**
 * Copyright psyark ( http://wonderfl.net/user/psyark )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/7pLT
 */

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