in reply to Re: Easiest way to list prime numbers 1 to 100 (one-liner)
in thread Easy way to list prime numbers 1 to 100
As the claim was only to list primes below 100 easily, I found that solution actually quite O.K.
No need to praise it as "innovative", but also no need to mock it.
After all, the intend of the OP obviously dealt with small numbers and was not for example to show "a way to compute the 42th digit of the base 3 expansion of the 7th million prime number!"
When dealing with small primes (say up to 1,000,000 or even beyond), using precomputed lists maybe covenient. Moreso if such lists are easily available, e.g. from this site.
|
|---|