OFFSET
1,2
LINKS
Jinyuan Wang, Table of n, a(n) for n = 1..10000
EXAMPLE
1 is the smallest digit of 15 and it appears once, 1+1 is prime so 15 appears in the sequence; and so does 21, 51, 81, 91.
MAPLE
frequdig := proc(n, dig) local f, d ; f := 0 ; for d in convert(n, base, 10) do if d = dig then f :=f+1; end if; end do; f ; end proc:
A054054 := proc(n) min(op(convert(n, base, 10)) ) ; end proc:
for n from 1 to 500 by 2 do if not isprime(n) then sdg := A054054(n) ; a := sdg +frequdig(n, sdg) ; if isprime(a) then printf("%d, ", n ) ; end if; end if; end do: # R. J. Mathar, May 05 2010
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Juri-Stepan Gerasimov, Jan 11 2009
EXTENSIONS
Entries checked by R. J. Mathar, May 05 2010
STATUS
approved