<?xml version="1.0" encoding="windows-1252"?>
<node id="20757" title="RE: RE: RE: RE: RE: sieve of erothenes" created="2000-07-01 18:12:55" updated="2005-07-19 14:08:39">
<type id="11">
note</type>
<author id="9135">
Adam</author>
<data>
<field name="doctext">
You know, you are right. I had thought I had done it in the right order, but I didn't... I screwed that up. I guess I would have to use:&lt;code&gt;
@_=(1);L:for(2..100){$i=0;while(@_&gt;++$i){next L if!($_%$_[$i])}push@_,$_} 
&lt;/code&gt;
which uses 2 more chars. Sigh. 
&lt;p&gt;UPDATE:
I can do it with one less char then above, but still too many.:&lt;code&gt;
@_=(1);L:for(2..100){$i=-@_;while(++$i){next L if!($_%$_[$i])}push@_,$_} 
&lt;/code&gt;
&lt;font size=-1&gt;
Yes, I lie awake at night thinking about this stuff. No, not really. But when I get started thinking about it, I have a hard time stopping. But I doubt I'm alone in that disease. :)&lt;/font&gt;
</field>
<field name="root_node">
20633</field>
<field name="parent_node">
20724</field>
</data>
</node>
