OFFSET
1,1
COMMENTS
This is the middle prime q in a prime triple p < q=(p+r)/2 < r such that either (p,q) are two consecutive primes or (q,r) are two consecutive primes, but (p,q,r) are not three consecutive primes.
EXAMPLE
In the ordered set of primes we have ...,607, 613, 617, 619, 631,... and (607 + 631)/2 = 619, where 619 and 631 are consecutive primes, therefore 619 is in this sequence.
MAPLE
for i from 2 to 400 do
p := ithprime(i) ;
pn := prevprime(p) ;
pk := 2*p-pn ;
if isprime(pk) and pk > nextprime(p) then
printf("%d, ", p) ;
else
pk := nextprime(p) ;
pn := 2*p-pk ;
if isprime(pn) and pn < prevprime(p) then
printf("%d, ", p) ;
end if;
end if;
end do: # R. J. Mathar, Jul 20 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Irina Gerasimova, Jul 11 2013
EXTENSIONS
Corrected by R. J. Mathar, Jul 20 2013
STATUS
approved