OFFSET
1,1
COMMENTS
Complement of A171511. [Jaroslav Krizek, Dec 13 2009]
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(1) = composite(1)+1 = 4 +1 = 5 ; a(2) = composite(2)+2 = 6+2=8.
MAPLE
Comps:= remove(isprime, [$4..200]):
seq(Comps[i]+i, i=1..nops(Comps)); # Robert Israel, Mar 23 2020
MATHEMATICA
c=0; Do[If[CompositeQ[n], c=c+1; Print[c+n]], {n, 1, 87}] (* Metin Sariyar, Mar 23 2020 *)
Range@ Length # + # &@ Select[Range[4, 87], CompositeQ] (* Michael De Vlieger, Mar 23 2020 *)
PROG
(PARI) my(n=0); forcomposite(k=4, 86, print1(k+n++, ", ")) \\ Hugo Pfoertner, Mar 23 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Claudio Meller, Jun 13 2009
STATUS
approved