OFFSET
1,1
EXAMPLE
Prime(1) = 2 and 1 + 2 = 3 (prime);
prime(2) = 3 and 2 + 3 = 5 (prime);
prime(3) = 5 and 3 + 5 = 8 (composite), so a(1) = 8;
prime(4) = 7 and 4 + 7 = 11 (prime);
prime(5) = 11 and 5 + 11 = 16 (composite), so a(2) = 16; etc.
MAPLE
A054054 := proc(n) min(op(convert(n, base, 10)) ) ; end proc: A144591 := proc(n) p := ithprime(n) ; sd := A054054(n) ; if not isprime(p+sd) then printf("%d, ", p+sd) ; end if; end proc: seq(A144591(n), n=1..400) ; # R. J. Mathar, May 01 2010
MATHEMATICA
Select[Table[Prime[n]+Min[IntegerDigits[n]], {n, 80}], CompositeQ] (* The program uses the CompositeQ function from Mathematica version 10 *) (* Harvey P. Dale, Nov 15 2015 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Juri-Stepan Gerasimov, Jan 12 2009
EXTENSIONS
Corrected (369 replaced by 370) by R. J. Mathar, May 01 2010
STATUS
approved