login
A022834
a(n) = c(1)p(3) + ... + c(n)p(n+2), where c(i) = 1 if a(i-1) <= p(i+2) and c(i) = -1 if a(i-1) > p(i+2) (p(i) = primes).
0
5, 12, 1, 14, 31, 12, 35, 6, 37, 74, 33, 76, 29, 82, 23, 84, 17, 88, 15, 94, 11, 100, 3, 104, 1, 108, 217, 104, 231, 100, 237, 98, 247, 96, 253, 90, 257, 84, 263, 82, 273, 80, 277, 78, 289, 66, 293, 64, 297, 58, 299, 48, 305, 42, 311, 40, 317, 36, 319, 26, 333
OFFSET
0,1
CROSSREFS
Sequence in context: A130735 A322153 A022835 * A335102 A342069 A046610
KEYWORD
nonn
EXTENSIONS
Missing a(45)=66 inserted and name corrected by Sean A. Irvine, May 21 2019
STATUS
approved