[go: up one dir, main page]

login
A104295
a(n) = A104294(n) - A104293(n).
3
1, 2, 2, 2, 4, 4, 6, 6, 4, 6, 6, 2, 6, 6, 2, 4, 14, 2, 2, 6, 6, 2, 4, 4, 4, 6, 10, 6, 6, 4, 4, 10, 2, 6, 4, 4, 2, 2, 6, 2, 4, 4, 6, 2, 18, 6, 6, 2, 12
OFFSET
2,2
LINKS
FORMULA
a(n) = prime((prime(n)+1)/2) - prime((prime(n)-1)/2).
MATHEMATICA
Prime[(#+1)/2]-Prime[(#-1)/2]&/@Prime[Range[2, 50]] (* Harvey P. Dale, Mar 09 2022 *)
CROSSREFS
Sequence in context: A268241 A134318 A246452 * A172068 A289195 A353711
KEYWORD
easy,nonn
AUTHOR
Zak Seidov, Feb 28 2005
STATUS
approved