<?xml version="1.0" encoding="windows-1252"?>
<node id="890247" title="Re: (tye)Re3: (Golf): Sieve of Eratosthenes" created="2011-02-25 20:23:55" updated="2011-02-25 20:23:55">
<type id="11">
note</type>
<author id="26179">
tilly</author>
<data>
<field name="doctext">
And almost a decade later I was randomly looking at this, and realized that it could be made shorter still.
&lt;code&gt;
sub sieve3 {
    grep{@_[map$a*$_,2..@_/($a=$_)]=0if$_[$_]&gt;1}@_=0..pop
}
&lt;/code&gt;
Never give up on that last optimization!</field>
<field name="root_node">
81695</field>
<field name="parent_node">
81769</field>
</data>
</node>
