Description Usage Arguments Details Source See Also
Prime generator based on the sieve of Eratosthenes
1 | primes(n)
|
n |
integer; all prime numbers up to this will be returned |
Effective for primes up to ~100,000,000.
On my lightweight laptop:
1e7 -> 0.32s, 5e7 -> 1.7s, 1e8 -> 3.7s, 2e8 -> 7.6s, 3e8 -> 15s
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.