A093077 Primes p = prime(i) such that p(i)# + p(i+1) is prime.
2, 3, 5, 13, 17, 19, 43, 53, 59, 73, 367, 6143
Offset: 1
Keywords
Examples
3 = p(2) is in the sequence because p(2)# + p(3) = 11 is prime.
Links
- Hisanori Mishima, PI Pn + NextPrime (n = 1 to 100).
Programs
-
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 *)
Comments