|
|
A320701
|
|
Indices of primes followed by a gap (distance to next larger prime) of 6.
|
|
24
|
|
|
9, 11, 15, 16, 18, 21, 23, 32, 36, 37, 39, 40, 51, 54, 55, 56, 58, 67, 71, 73, 74, 76, 84, 86, 96, 100, 102, 103, 105, 107, 108, 110, 111, 118, 119, 123, 129, 130, 133, 160, 161, 164, 165, 167, 170, 174, 179, 184, 185, 187, 188, 194, 195, 199, 200, 202, 208, 210, 216, 218, 219, 227, 231
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Indices of the primes given in A031924.
Subsequence of indices of sexy primes A023201.
|
|
LINKS
|
|
|
FORMULA
|
|
|
MATHEMATICA
|
Position[Differences[Prime[Range[250]]], 6]//Flatten (* Harvey P. Dale, Oct 13 2022 *)
|
|
PROG
|
(PARI) A(N=100, g=6, 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
|
|
CROSSREFS
|
Cf. A029707, A029709, A320702, A320703, ..., A320720 (analog for gaps 2, 4, 8, 10, ..., 44), A116493 (gap 70), A116496 (gap 100), A116497 (gap 200), A116495 (gap 210).
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|