login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Difference between the smallest prime following and largest prime preceding n-th primorial number.
6

%I #12 Jun 08 2014 11:08:12

%S 2,2,12,2,18,48,46,80,102,74,120,72,136,174,132,168,198,190,230,176,

%T 234,286,102,354,364,336,278,486,442,386,408,1032,520,308,364,612,478,

%U 432,382,422,606,526,1344,606,1230,834,624,756,550

%N Difference between the smallest prime following and largest prime preceding n-th primorial number.

%H Alois P. Heinz, <a href="/A058044/b058044.txt">Table of n, a(n) for n = 2..100</a>

%F a(n) = A038710(n)-A007014(n).

%p [seq(nextprime(product(ithprime(k), k=1..w))-prevprime (product(ithprime(k), k=1..w)), w=2..50)];

%t Rest[NextPrime[#]-NextPrime[#,-1]&/@Rest[FoldList[Times,1,Prime[Range[ 50]]]]] (* _Harvey P. Dale_, Mar 24 2013 *)

%Y Cf. A002110, A007014, A038710.

%K nonn

%O 2,1

%A _Labos Elemer_, Nov 17 2000

%E Offset corrected by _Alois P. Heinz_, Jun 08 2014