

A058193


Smallest prime p such that there is a gap of 6n between p and the next prime.


5



23, 199, 523, 1669, 4297, 9551, 16141, 28229, 35617, 43331, 162143, 31397, 188029, 461717, 404851, 360653, 1444309, 2238823, 492113, 1895359, 1671781, 1357201, 3826019, 11981443, 13626257, 17983717, 39175217, 37305713, 52721113
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,1


LINKS

Table of n, a(n) for n=1..29.
T. R. Nicely, List of prime gaps
Index entries for primes, gaps between.


FORMULA

a(n) = A000230(3n).


EXAMPLE

d=72 appears after 31397, while smaller d=54,60,66 come later, following primes 35617,43331,162143 respectively.


PROG

(PARI) a(n) = {p=3; q = nextprime(p+1); while((qp) != 6*n, p = q; q = nextprime(q+1)); p; } \\ Michel Marcus, Mar 12 2016


CROSSREFS

Cf. A101232, A062529, A000230.
Sequence in context: A062640 A108646 A307355 * A065314 A065316 A060882
Adjacent sequences: A058190 A058191 A058192 * A058194 A058195 A058196


KEYWORD

nonn


AUTHOR

Labos Elemer, Nov 28 2000


EXTENSIONS

Offset corrected by M. F. Hasler, Apr 09 2013


STATUS

approved



