A320714 Indices of primes followed by a gap (distance to next larger prime) of 32.
738, 1315, 3022, 3042, 3607, 4112, 4300, 4362, 4555, 4619, 4761, 4893, 5204, 5358, 5615, 5637, 6215, 6265, 6479, 6610, 6706, 6933, 7295, 7829, 7884, 8049, 8198, 8548, 9085, 9155, 9524, 9588, 9641, 9826, 9924, 10463, 10824, 11367, 11590, 11701, 11729, 11869, 12159, 12258, 12275, 12327
Offset: 1
Keywords
Links
Crossrefs
Programs
-
Maple
p:= 2: Res:= NULL: count:= 0: for k from 1 while count < 100 do q:= nextprime(p); if q - p = 32 then count:= count+1; Res:= Res, k; fi; p:= q; od: Res; # Robert Israel, Oct 25 2018
-
Mathematica
PrimePi/@Select[Partition[Prime[Range[15000]],2,1],#[[2]]-#[[1]]==32&][[;;,1]] (* Harvey P. Dale, Jun 19 2024 *)
-
PARI
A(N=100,g=32,p=2,i=primepi(p)-1,L=List())={forprime(q=1+p,,i++; if(p+g==p=q, listput(L,i); N--||break));Vec(L)} \\ returns the list of first N terms of the sequence
Comments