|
|
A018239
|
|
Primorial primes: primes of the form 1 + product of first k primes, for some k.
|
|
27
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
REFERENCES
|
F. Iacobescu, Smarandache Partition Type and Other Sequences, Bull. Pure Appl. Sciences, Vol. 16E, No. 2 (1997), pp. 237-240.
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
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)
|
|
MATHEMATICA
|
Select[FoldList[Times, 1, Prime[Range[200]]] + 1, PrimeQ] (* Loreno Heer (helohe(AT)bluewin.ch), Jun 29 2004 *)
|
|
PROG
|
(PARI) P=1; print1(2); forprime(p=2, 1e6, if(isprime(1+P*=p), print1(", "P+1))) \\ Charles R Greathouse IV, Apr 28 2015
|
|
CROSSREFS
|
Primes in A006862 (primorials plus 1).
A005234 and A014545 (which are the main entries for this sequence) give more terms.
|
|
KEYWORD
|
nonn,nice
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|