OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
389 is in the sequence because 389 is prime, nextprime(389)=397, and (389+397)/2=393, a palindromic number.
MATHEMATICA
Select[Partition[Prime[Range[4000]], 2, 1], PalindromeQ[Mean[#]]&][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Apr 05 2019 *)
PROG
(PARI)
palind(n)=Str(n)==concat(Vecrev(Str(n)))
{p=2; while(p<10^5, q=nextprime(p+1); if(palind((p+q)/2), print1(p, ", ")); p=q)}
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Antonio Roldán, May 12 2014
STATUS
approved