OFFSET
1,1
COMMENTS
a(14) > 10^8 if it exists.
As soon as the prime gap grows slow enough, for all large enough p we have (r-p)*(r-q) <= r, implying finiteness of this sequence. In particular, finiteness would follow from Cramer's conjecture. - Max Alekseyev, Nov 09 2024
EXAMPLE
a(5)=17 is a member because it is prime, the next two primes are 19 and 23, and (23-17)*(23-19)=24 > 23.
MAPLE
p:= 0: q:=2:r:= 3: R:= NULL:
while p < 10^4 do
p:= q: q:= r: r:= nextprime(r);
if (r-q)*(r-p) > r then R:= R, p; fi
od:
R;
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Robert Israel, Nov 03 2020
STATUS
approved