OFFSET
1,1
COMMENTS
EXAMPLE
997 is in the sequence because 997 becomes (002) = 2, which is prime.
MATHEMATICA
lst={}; f[n_]:=Block[{a=IntegerDigits[Prime[n]], b="", k=1, l}, l=Length[a]; While[k<l+1, b=StringJoin[b, ToString[9-a[[k]]]]; k++]; ToExpression[b]]; Do[If[PrimeQ[f[n]], AppendTo[lst, Prime[n]]], {n, 1, 10^6}]; lst
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Lagneau, Apr 10 2014
STATUS
approved