This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A022833 #15 Sep 04 2019 13:16:38 %S A022833 2,0,3,8,1,12,25,8,27,4,33,2,39,80,37,84,31,90,29,96,25,98,19,102,13, %T A022833 110,9,112,5,114,1,128,259,122,261,112,263,106,269,102,275,96,277,86, %U A022833 279,82,281,70,293,66,295,62,301,60,311,54,317,48,319,42,323,40 %N A022833 a(0)=2; thereafter a(n) = a(n-1) + prime(n) if a(n-1) < prime(n), otherwise a(n) = a(n-1) - prime(n). Cf. A008348. %C A022833 Old definition was "a(n) = c(1)p(2) + ... + c(n)p(n+1), where c(i) = 1 if a(i-1) <= p(i+1) and c(i) = -1 if a(i-1) > p(i+1) (p(i) = primes)." %Y A022833 Cf. A008348, A022837. %K A022833 nonn %O A022833 0,1 %A A022833 _Clark Kimberling_ %E A022833 Name corrected by _Sean A. Irvine_, May 22 2019 %E A022833 Definition and start of sequence rewritten by _N. J. A. Sloane_, Sep 04 2019