login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A249666
Numbers n such that the sum of n and the largest prime<n (A151799(n)) is prime.
4
3, 4, 6, 10, 12, 16, 22, 24, 30, 36, 42, 46, 50, 54, 56, 66, 70, 76, 78, 84, 90, 92, 100, 114, 116, 120, 126, 130, 132, 142, 144, 156, 160, 170, 174, 176, 180, 186, 192, 196, 202, 210, 220, 222, 226, 232, 234, 240, 246, 250, 252, 276, 280, 282, 286, 288, 294, 300, 306, 310, 324
OFFSET
1,1
LINKS
EXAMPLE
66 is in the sequence because A151799(66)=61, and 66+61=127 is prime.
MATHEMATICA
Select[Range[400], PrimeQ[#+NextPrime[#, -1]]&] (* Harvey P. Dale, Aug 04 2019 *)
PROG
(PARI) {for(i=3, 10^3, k=i+precprime(i-1); if(isprime(k), print1(i, ", ")))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Antonio Roldán, Dec 03 2014
STATUS
approved