OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) ~ 0.5 n log n. - Charles R Greathouse IV, May 25 2011
EXAMPLE
a(1)=5-3=2; a(2)=5-2=3; a(3)=7-3=4.
MATHEMATICA
Table[If[OddQ[n], Prime[(n+1)/2+2]-3, Prime[n/2+2]-2], {n, 70}] (* Harvey P. Dale, Oct 25 2020 *)
PROG
(PARI) forprime(p=5, 97, print1(p-3", "p-2", ")) \\ Charles R Greathouse IV, May 25 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Juri-Stepan Gerasimov, Dec 03 2009
EXTENSIONS
Entries checked by R. J. Mathar, Apr 14 2010
Definition reworded by N. J. A. Sloane, Aug 24 2012
STATUS
approved