OFFSET
1,2
COMMENTS
From the first 3000 primes, only 369 are such that n, p[n], p[n]+n, p[n]-n and p[n]*n all are 5-less.
MATHEMATICA
id[x_]:=IntegerDigits[x]; pr[i_]:=Prime[i]; ra=Range[3000]; A104425=Select[ra, Position[Union[id[ # ], id[pr[ # ]], id[pr[ # ]+# ], id[pr[ # ]-# ], id[pr[ # ]*# ]], 5]=={}&]
flQ[n_]:=Module[{pr=Prime[n]}, Union[DigitCount[{n, pr, pr+n, pr-n, pr*n}, 10, 5]] == {0}]; Select[Range[300], flQ] (* Harvey P. Dale, May 29 2014 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov, Mar 07 2005
STATUS
approved