For no real reason, I decided to look at the frequency of gaps between the prime...

@robpike@cosocial.ca

For no real reason, I decided to look at the frequency of gaps between the prime numbers: 1 between 2 and 3, 2 between 3 and 5, 2 again between 5 and 7, and so on. The results are noisier than I expected. Pretty consistently up to hundreds of millions, the most frequent gap by a large margin is 6, first appearing between 23 and 29.

The ivy code:

op gaps n =
p = primes n
gaps = (1 drop p) - -1 drop p
u = u[up u = unique gaps]
transp (2, (rho u)) rho u, (+/%@ u @== gaps)