cp's OEIS Frontend

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.

A179789 Sum of the differences between the first prime and the next, inside in the first jump in a Sieve of Eratosthenes table.

This page as a plain text file.
%I A179789 #8 Apr 18 2019 02:55:04
%S A179789 1,2,2,10,16,20,34,44,66,78,124,182,184,206,212,300,386,360,412,494,
%T A179789 466,608,628,700,928,1046,1006,1034,996,1034,1440,1474,1728,1816,1976,
%U A179789 1922,2226,2212,2264,2260,2604,2722,2968,3094,3158,3292,3714,4148,4218,4370
%N A179789 Sum of the differences between the first prime and the next, inside in the first jump in a Sieve of Eratosthenes table.
%C A179789 2 - 3 = 1, 3 - 5 = 2, 5 - 7 = 2, 7 - 11 = 4 + 7 - 13 = 6 ==> 4 + 6 = 10, 11 - 13 = 2 + 11 - 17 = 6 + 11 - 19 = 8 ==> 2 + 6 + 8 = 16.
%p A179789 A179789 := proc(n) a :=0 ; for q from ithprime(n)+1 to 2*ithprime(n) do if isprime(q) then a := a+q-ithprime(n) ; end if; end do: a ; end proc: seq(A179789(n),n=1..50) ; # _R. J. Mathar_, Sep 19 2010
%Y A179789 Cf. A000040, A179545.
%K A179789 nonn
%O A179789 0,2
%A A179789 _Odimar Fabeny_, Jul 27 2010
%E A179789 Extended by _R. J. Mathar_, Sep 19 2010