Comment

Comment by neoneye2

As a hobby project, I did investigate the distribution of prime numbers.

The primes are somewhat evenly spaced with this transformation, I'm the author of it.

A342730: a(n) = floor((frac(e * n) + 1) * prime(n+1)).

https://oeis.org/A342730/a342730.png

Instead of e, I have tried other constants such as pi, but it doesn't look as good. I guess there is another constant that makes the distribution look even nicer.

parent neoneye2 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton