OFFSET
1,1
EXAMPLE
383 is in the sequence because the highest factor of 383+1 is 3, which is a palindromic prime and the highest factor of 383-1 is 191, which is a palindromic prime.
MATHEMATICA
Select[Prime@ Range[10^4], AllTrue[{FactorInteger[# - 1][[-1, 1]], #, FactorInteger[# + 1][[-1, 1]]}, And[PrimeQ@ #, PalindromeQ@ #] &] &] (* Michael De Vlieger, Nov 13 2018 *)
PROG
(PARI) forprime(n=3, 10^9, if(Vecrev(digits(n))==digits(n), s=factor(n-1); t=factor(n+1); s=component(s, 1); t=component(t, 1); s=s[length(s)]; t=t[length(t)]; if(Vecrev(digits(s))==digits(s), if(Vecrev(digits(t))==digits(t), print1(n, " , ")))))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo Galliani, Nov 07 2018
EXTENSIONS
a(11)-a(21) from Giovanni Resta, Nov 08 2018
STATUS
approved