OFFSET
1,1
COMMENTS
Prime(A035346(n)) = a(n). - Mohammed Bouayoun (bouyao(AT)wanadoo.fr), Mar 19 2004
LINKS
Hisanori Mishima, PI Pn + NextPrime (n = 1 to 100).
EXAMPLE
3 = p(2) is in the sequence because p(2)# + p(3) = 11 is prime.
MATHEMATICA
Do[p = Product[ Prime[i], {i, 1, n}]; q = Prime[n + 1]; If[ PrimeQ[p + q], Print[ Prime[n]]], {n, 1, 1435}]
With[{nn=1000}, NextPrime[#, -1]&/@(Select[Thread[{FoldList[ Times, Prime[ Range[nn]]], Prime[Range[ 2, nn+1]]}], PrimeQ[ Total[#]]&][[All, 2]])] (* Harvey P. Dale, Oct 07 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Oct 25 2003
STATUS
approved