OFFSET
1,1
FORMULA
EXAMPLE
a(1) = 37 because 37 and R(37) = 73 are prime, as are prime(37) = 157 and R(prime(37)) = 751. a(2) = 71 because 71 and R(71) = 17 are prime, as are prime(71) = R(prime(71)) = 353 (which is not an emirp because the reversal is the same prime). a(3) = 157 because 157 and R(157) = 751 are prime, as are prime(157) = R(prime(157)) = 919 (which is not an emirp because the reversal is the same prime). a(4) = 167 because 167 and R(157) = 671 are prime, as are prime(167) = 991 and R(prime(167)) = 199. a(5) = 199 because 199 and (199) = 991 are prime, as are prime(199) = 1217 and R(1217)= prime(912) = 7121.
MATHEMATICA
emQ[n_]:=Module[{idn=IntegerDigits[n], revidn}, revidn=Reverse[idn]; idn!= revidn && PrimeQ[FromDigits[revidn]] && PrimeQ[FromDigits[ Reverse[ IntegerDigits[ Prime[n]]]]]]; Select[Prime[Range[600]], emQ] (* Harvey P. Dale, Mar 01 2012 *)
CROSSREFS
KEYWORD
easy,nonn,less,base
AUTHOR
Jonathan Vos Post, Dec 18 2009
EXTENSIONS
More terms from R. J. Mathar, Jan 25 2010
STATUS
approved