OFFSET
1,1
COMMENTS
All prime numbers appear in this sequence.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, Colored logarithmic scatterplot of the first 25000 terms (where the color is function of n-k: black pixels when n-k = 0, gray pixels when n-k = 1, other colors otherwise)
EXAMPLE
PROG
(PARI) { s = 0; for (n = 1, #a = vector(60), for (v = 1, oo, if (!bittest(s, v), t = v; forstep (k = n, 1, -1, if (isprime(t += a[k]), s += 2^(a[n] = v); print1 (t", "); break (2); ); ); ); ); ); }
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Apr 02 2026
STATUS
approved
