OFFSET
0,1
EXAMPLE
Reversing and adding starting with 1005710 -> 1180711 -> 2351522 -> 4603054 -> 9106118 -> 17222137 and 17222137 is prime while the prior numbers are not primes.
MATHEMATICA
p5Q[n_]:=Module[{lst=NestList[#+FromDigits[Reverse[ IntegerDigits[#]]]&, n, 5]}, NoneTrue[Most[lst], PrimeQ]&&PrimeQ[Last[lst]]]; Select[ Range[ 3000000], p5Q] (* using NoneTrue function from Mathematica version 10 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Harvey P. Dale, Jul 13 2014
STATUS
approved