in reply to RE: RE: sieve of erothenes
in thread sieve of erothenes
I don't understand why yours is faster because you use two for loops and I use a while loop the second time, dropping the overhead of making the temp array that foreach generates. Now I'm curious about the efficiencies of the two looping mechanisms...
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: RE: RE: sieve of erothenes
by maverick (Curate) on Jul 01, 2000 at 08:44 UTC | |
by husker (Chaplain) on Jul 05, 2000 at 18:05 UTC | |
by Adam (Vicar) on Jul 01, 2000 at 22:12 UTC |