OFFSET
1,1
COMMENTS
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
15 consecutive primes starting with 19725473 are
{19725473, 19725479, 19725527, 19725533, 19725599, 19725617, 19725623, 19725653, 19725659, 19725677, 19725683, 19725689, 19725701, 19725731, 19725737} with gaps
{6, 48, 6, 66, 18, 6, 30, 6, 18, 6, 6, 12, 30, 6} - all multiples of 6.
MATHEMATICA
Select[Partition[Prime[Range[68*10^5]], 14, 1], AllTrue[Mod[#, 6]==5&]][[;; , 1]] (* Harvey P. Dale, Mar 06 2023 *)
Prime[#]&/@(SequencePosition[If[Mod[#, 6]==5, 1, 0]&/@Prime[Range[672*10^4]], PadRight[{}, 14, 1]][[;; , 1]]) (* Harvey P. Dale, Sep 22 2024 *)
PROG
(PARI) list(lim)=my(v=List(), P=primes(14), goal=vector(14, i, 5), pm=P%6, idx=1); forprime(p=P[#P]+1, , P[idx]=p; pm[idx]=p%6; if(idx++>14, idx=1); if(P[idx]>lim, break); if(pm==goal, listput(v, P[idx]))); Vec(v) \\ Charles R Greathouse IV, Mar 20 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Mar 20 2017
EXTENSIONS
a(9)-a(23) from Charles R Greathouse IV, Mar 20 2017
STATUS
approved