OFFSET
1,1
COMMENTS
a(19) > 22013. - J.W.L. (Jan) Eerland, Dec 19 2022
a(19) > 63317. - J.W.L. (Jan) Eerland, Dec 20 2022
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}]
Module[{nn=1120, pr1, pr2, prmrl}, pr1=Prime[Range[nn]]; pr2=Prime[Range[ 2, nn+1]]; prmrl=FoldList[Times, pr1]; Transpose[Select[Thread[{pr1, pr2, prmrl}], PrimeQ[#[[3]]-#[[2]]]&]][[1]]] (* Harvey P. Dale, Dec 07 2015 *)
n=1; Monitor[Parallelize[While[True, If[PrimeQ[Product[Prime[k], {k, 1, n}]-Prime[n + 1]], Print[Prime[n]]]; n++]; n], n] (* J.W.L. (Jan) Eerland, Dec 19 2022 *)
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Robert G. Wilson v, Oct 25 2003
EXTENSIONS
a(16)-a(18) from J.W.L. (Jan) Eerland, Dec 19 2022
STATUS
approved