OFFSET
1,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = prime(n+2)-composite(n) = A161671(n+2).
MATHEMATICA
Module[{nn=100, pr, cmp}, cmp=Select[Range[nn], CompositeQ]; pr=Prime[ Range[ 3, Length[cmp]+2]]; pr-cmp] (* Harvey P. Dale, May 28 2015 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Juri-Stepan Gerasimov, Nov 29 2009
EXTENSIONS
Edited by Charles R Greathouse IV, Mar 25 2010
STATUS
approved