Primes up to 1000
computed on the server, by the sieve of Eratosthenes
| primes | 168 |
| twin pairs | 35 |
| largest gap | 20 (after 887) |
| their sum | 76127 |
The sieve is sub sieve(Int $limit) is server. Read the page source: the numbers are in the HTML, and the algorithm is not in the script.