Primes up to 1000

computed on the server, by the sieve of Eratosthenes

primes168
twin pairs35
largest gap20 (after 887)
their sum76127

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.