OFFSET
1,1
MATHEMATICA
f[n_] := Block[{m = Total@ Select[ IntegerDigits@ n, EvenQ], p = 2}, While[ Total@ Select[ IntegerDigits@ p, EvenQ] <= m, p = NextPrime@ p]; p]; NestList[f, 2, 31] (* Robert G. Wilson v, Jun 23 2014 *)
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Juri-Stepan Gerasimov, Mar 12 2009, Mar 18 2009
EXTENSIONS
Definition corrected by N. J. A. Sloane, Mar 19 2009
a(12) from Alvin Hoover Belt, May 20 2009
Definition clarified by D. S. McNeil, Dec 10 2009
Missing values 683 and 8887 inserted and extended by D. S. McNeil, Dec 10 2009
a(26) - a(32) from Robert G. Wilson v, Jun 23 2014
STATUS
approved