OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 1451 is a term because 1451, 1453, 1459, 1471 are consecutive primes with (1453*1471-1451*1459)/2 = 10177 and |1451*1471-1453*1459|/2 = 7247 both prime.
MAPLE
R:= NULL: count:= 0:
q:= 3: r:= 5: s:= 7:
while count < 100 do
p:= q; q:= r; r:= s; s:= nextprime(s);
if isprime(abs(p*s-q*r)/2) and isprime((q*s-p*r)/2) then
count:= count+1; R:= R, p;
fi
od:
R:
MATHEMATICA
Select[Partition[Prime[Range[4500]], 4, 1], AllTrue[{(#[[2]]#[[4]]-#[[1]]#[[3]])/2, (#[[1]]#[[4]]- #[[2]] #[[3]])/2}, PrimeQ]&][[;; , 1]] (* Harvey P. Dale, Dec 24 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Mar 14 2021
STATUS
approved