OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
a(1) = 1 because 1st semiprime = 4, 4+1=5 is trivially a palindrome.
a(2) = 2 because 2nd semiprime = 6, 6+2=8 is trivially a palindrome.
a(3) = 11 because 11th semiprime = 33, 33+11=44 is nontrivially a palindrome.
a(4) = 17 because 17th semiprime = 49, 49+17=66 is nontrivially a palindrome.
a(5) = 20 because 20th semiprime = 57, 57+20=77 is nontrivially a palindrome.
a(8) = 35 because 35th semiprime = 106, 106+35=141 is nontrivially a palindrome.
MATHEMATICA
Module[{nn=20000, sems}, sems=Select[Range[nn], PrimeOmega[#]==2&]; Select[ Thread[{Range[Length[sems]], sems}], Total[ #]==IntegerReverse[Total[ #]]&]] [[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Oct 08 2016 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jonathan Vos Post, Nov 23 2010
STATUS
approved