cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A139460 a(n) = m such that 2*prime(n+m+1) + (product of n successive odd primes) is prime.

Original entry on oeis.org

1, 1, 1, 1, 2, 3, 3, 1, 1, 2, 1, 1, 9, 2, 7, 21, 7, 25, 4, 3, 18, 7, 4, 7, 11, 5, 1, 1, 61, 5, 20, 6, 22, 16, 11, 17, 1, 70, 6, 5, 5, 22, 9, 52, 108, 16, 1, 32, 42, 15, 5, 66, 6, 8, 3, 38, 17, 4, 23, 93, 8, 16, 6, 1, 39, 7, 9, 10, 21, 57, 40, 2, 15, 39, 16, 7, 5, 13, 138, 95, 58, 8, 47, 11, 39
Offset: 1

Views

Author

Artur Jasinski, Apr 22 2008; definition corrected May 09 2008

Keywords

Comments

Or, a(n) = m such that primorial(n+1)/2+2*prime(n+m+1) is prime.
For positions of 1's in this sequence see A139461

Crossrefs

Programs

  • Mathematica
    k = 1; a = {}; Do[k = k*Prime[n]; m = 1; While[ ! PrimeQ[k + 2*Prime[n + m]], m++ ]; Print[m]; AppendTo[a, m], {n, 2, 200}]; a (*Artur Jasinski*)