login
A087458
Greatest prime p such that prime(n)+p <= prime(n+1); a(1)=1.
0
1, 2, 2, 3, 2, 3, 2, 3, 5, 2, 5, 3, 2, 3, 5, 5, 2, 5, 3, 2, 5, 3, 5, 7, 3, 2, 3, 2, 3, 13, 3, 5, 2, 7, 2, 5, 5, 3, 5, 5, 2, 7, 2, 3, 2, 11, 11, 3, 2, 3, 5, 2, 7, 5, 5, 5, 2, 5, 3, 2, 7, 13, 3, 2, 3, 13, 5, 7, 2, 3, 5, 7, 5, 5, 3, 5, 7, 3, 7, 7, 2, 7, 2, 5, 3, 5, 7, 3, 2, 3, 11, 7, 3, 7, 3, 5, 11, 2, 17
OFFSET
1,2
COMMENTS
a(n) = A007917(A001223(n)) for n>1.
MATHEMATICA
Join[{1}, NextPrime[#+1, -1]&/@Differences[Prime[Range[2, 100]]]] (* Harvey P. Dale, Aug 04 2024 *)
CROSSREFS
Sequence in context: A059964 A308050 A248147 * A052180 A065151 A345874
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 23 2003
STATUS
approved