OFFSET
1,1
COMMENTS
Since zero digits are allowed, sequence is almost certainly infinite. - Zak Seidov, Feb 22 2009
EXAMPLE
a(1)=3 because 3=abs(3-0). a(4)=137 because 1<3<7 and 3=abs(7-(1+3)).
MATHEMATICA
moQ[n_]:=Module[{idn=IntegerDigits[n]}, Abs[2Max[idn]-Total[idn]] ==3]; Select[Prime[Range[500]], moQ] (* Harvey P. Dale, May 12 2011 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Juri-Stepan Gerasimov, Feb 21 2009
EXTENSIONS
Removed 1481. R. J. Mathar, Feb 21 2009
STATUS
approved