OFFSET
2,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 2..10000
FORMULA
a(n) = p-n where p = largest prime <= 2n-1.
a(n) = A060265(n) - n. - Reinhard Zumkeller, Feb 22 2015
EXAMPLE
Adding 1,2,3,2,5 to 2,3,4,5,6 we get the primes 3,5,7,7,11.
MAPLE
with(numtheory); A088631 := n->prevprime(2*n)-n;
PROG
(Haskell)
a088631 n = a060265 n - n -- Reinhard Zumkeller, Feb 22 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
N. J. A. Sloane, Nov 24 2003
STATUS
approved