OFFSET
0,1
EXAMPLE
Reversing digits and adding starting with 11021 -> 23032 -> 46064 -> 92128 -> 174257 and 174257 is a prime while the prior numbers are not primes.
MATHEMATICA
p4Q[n_] := Module[{lst = NestList[# + FromDigits[Reverse[IntegerDigits[#]]] &, n, 4]}, NoneTrue[Most[lst], PrimeQ] && PrimeQ[Last[lst]]]; Select[Range[100000], p4Q](* using NoneTrue function from Mathematica version 10 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Harvey P. Dale, Jul 13 2014
STATUS
approved