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.

A018239 Primorial primes: primes of the form 1 + product of first k primes, for some k.

Original entry on oeis.org

2, 3, 7, 31, 211, 2311, 200560490131
Offset: 1

Views

Author

Keywords

Comments

Prime numbers that are the sum of two primorial numbers. - Juri-Stepan Gerasimov, Nov 08 2010

Examples

			From _M. F. Hasler_, Jun 23 2019: (Start)
a(1) = 2 = 1 + product of the first 0 primes (i.e., the empty product = 1).
a(2) = 3 = 1 + 2 = 1 + product of the first prime (= 2).
a(3) = 7 = 1 + 2*3 = 1 + product of the first two primes.
a(4) = 31 = 1 + 2*3*5 = 1 + product of the first three primes.
a(5) = 211 = 1 + 2*3*5*7 = 1 + product of the first four primes.
a(6) = 2311 = 1 + 2*3*5*7*11 = 1 + product of the first five primes.
Then the product of the first 6, 7, ..., 9 or 10 primes does not yield a primorial prime, the next one is:
a(7) = 200560490131 = 1 + 2*3*5*7*11*13*17*19*23*29*31 = 1 + product of the first eleven primes,
and so on. See A014545 = (0, 1, 2, 3, 4, 5, 11, 75, 171, 172, ...) for the k's that yield a term. (End)
		

References

  • F. Iacobescu, Smarandache Partition Type and Other Sequences, Bull. Pure Appl. Sciences, Vol. 16E, No. 2 (1997), pp. 237-240.

Crossrefs

Primes in A006862 (primorials plus 1).
A005234 and A014545 (which are the main entries for this sequence) give more terms.
Cf. A002110.

Programs

  • Mathematica
    Select[FoldList[Times, 1, Prime[Range[200]]] + 1, PrimeQ] (* Loreno Heer (helohe(AT)bluewin.ch), Jun 29 2004 *)
  • PARI
    P=1;print1(2); forprime(p=2,1e6, if(isprime(1+P*=p), print1(", "P+1))) \\ Charles R Greathouse IV, Apr 28 2015

Formula

a(n) = 1 + A002110(A014545(n)), where A002110(k) is the product of the first k primes. - M. F. Hasler, Jun 23 2019

Extensions

Edited by N. J. A. Sloane at the suggestion of Vladeta Jovovic, Jun 18 2007
Name edited by M. F. Hasler, Jun 23 2019