OFFSET
1,1
COMMENTS
Palindrome is also a prime for n = 241, 443, 613, 641, 811, 20011, 20047, 20051, 20101, 20161, ... . Example: 613+316 = 929, which is prime. [Bruno Berselli, Jul 05 2014]
Subsequence of primes within A015976. - Michel Marcus, Jul 05 2014
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
EXAMPLE
13 is in the sequence because 13+31 = 44 is a palindrome.
1103 is in the sequence because 1103+3011 = 4114 is a palindrome.
MATHEMATICA
selQ[p_] := (id = IntegerDigits[p]; id2 = IntegerDigits[p + FromDigits[Reverse[id]]]; id2 == Reverse[id2]); Select[Array[Prime, 200], selQ] (* Jean-François Alcover, Jul 05 2014 *)
Select[Prime[Range[200]], PalindromeQ[#+IntegerReverse[#]]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Nov 11 2020 *)
PROG
(Magma) [p: p in PrimesUpTo(1200) | q eq Reverse(q) where q is Intseq(p+Seqint(Reverse(Intseq(p))))]; // Bruno Berselli, Jul 05 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Vincenzo Librandi, Jul 02 2014
STATUS
approved