OFFSET
1,1
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..250
EXAMPLE
a(3) = 3500381 is a term because 3500381, 3500383, 3500407, 3500429 are four consecutive primes with (2*3500381 + 3500383)/5 = 2100229, (3500383 + 3500407)/10 = 700079, and (3500407 + 2*3500429)/5 = 2100253 all prime.
MAPLE
Res:= NULL: count:= 0:
q:= 2: r:= 3: s:= 5:
while count < 40 do
p:= q; q:= r; r:= s; s:= nextprime(s);
t:= (2*p+q)/5; u:= (q+r)/10; v:= (r+2*s)/5;
if (t::integer and u::integer and v::integer and isprime(t) and isprime(u) and isprime(v)) then
count:= count+1; Res:= Res, p;
fi
od:
Res;
MATHEMATICA
Select[Partition[Prime[Range[8.3*10^6]], 4, 1], PrimeQ[(2*#[[1]] + #[[2]])/5] && PrimeQ[(#[[2]] + #[[3]])/10] && PrimeQ[(#[[3]] + 2*#[[4]])/5] &][[;; , 1]] (* Amiram Eldar, Nov 01 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Nov 01 2022
STATUS
approved