login
A104897
Difference between (n+prime(n)) and next prime.
0
2, 2, 3, 2, 1, 4, 5, 2, 5, 2, 1, 4, 5, 2, 5, 2, 3, 4, 3, 6, 3, 2, 1, 14, 5, 4, 1, 2, 1, 6, 5, 4, 3, 6, 7, 4, 3, 10, 5, 10, 3, 4, 5, 2, 9, 6, 5, 6, 1, 2, 9, 2, 13, 2, 1, 12, 5, 2, 1, 6, 3, 4, 3, 4, 1, 6, 3, 4, 3, 2, 7, 2, 3, 2, 3, 2, 1, 4, 7, 2, 3, 6, 7, 4, 17
OFFSET
1,1
FORMULA
a(n)=A104860(n)-A014688(n).
PROG
(PARI) a(n) = nextprime(n + prime(n) + 1) - (n + prime(n)); \\ Michel Marcus, Oct 09 2013
CROSSREFS
Sequence in context: A092565 A021452 A093420 * A185694 A305294 A097510
KEYWORD
nonn
AUTHOR
Zak Seidov, Apr 25 2005
EXTENSIONS
More terms from Michel Marcus, Oct 09 2013
STATUS
approved