OFFSET
1,1
COMMENTS
From Zak Seidov: First terms followed by gaps 40, 2, 40: (383179, 1269601, 1528897, ...). First term followed by gaps 40, 2, 40, 2, 40 is 13504819. - M. F. Hasler, Oct 29 2018
LINKS
MAPLE
a:=p->`if`(ithprime(p+1)-ithprime(p)=40, ithprime(p), NULL); seq(a(p), p=1..13000); # Muniru A Asiru, Oct 29 2018
MATHEMATICA
Transpose[Select[Partition[Prime[Range[11000]], 2, 1], #[[2]]-#[[1]] == 40&]][[1]] (* Harvey P. Dale, Apr 18 2012 *)
PROG
(PARI) A(N=100, g=40, p=2, i=primepi(p)-1, L=[])={forprime(q=1+p, , i++; if(p+g==p=q, L=concat(L, q-g); N--||break)); L} \\ returns the list of first N terms of the sequence. - M. F. Hasler, Oct 19 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
RĂ©mi Eismann, Feb 13 2007
STATUS
approved