Print This Post Print This Post

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>

(required)

(required)


*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word