A Prime Number Generating Formula
If James Brown and Einstein were accelerated to near-lightspeed and then collided inside a particle accelerator, the result would be some funky science – a bit like this prime number generating formula.
Spoiler: a(n) = a(n-1) + gcd(n,a(n-1)), a(1)=7, n >= 2. Calculate a(n)-a(n-1), skip the 1’s and remove duplicates.


No Comments so far
Leave a comment
Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>