in reply to Perl vs. Python for prime numbers
Maybe not the point of your post, but that is one dumb algorithm for finding primes.
Why test even numbers greater than 2? Why test multiples of the primes already found? Why trial divide with Xs greater than sqrt(n)?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl vs. Python for prime numbers
by eyepopslikeamosquito (Archbishop) on Jun 14, 2013 at 10:09 UTC | |
by BrowserUk (Patriarch) on Jun 14, 2013 at 10:23 UTC |