OFFSET
1,1
COMMENTS
LINKS
Karl V. Keller, Jr., Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Twin Primes
EXAMPLE
15370470 is the average of the four consecutive primes 15370423, 15370469, 15370471, 15370517.
15462870 is the average of the four consecutive primes 15462823, 15462869, 15462871, 15462917.
PROG
(Python)
from sympy import isprime, prevprime, nextprime
for i in range(0, 160000001, 6):
..if isprime(i-1) and isprime(i+1) and prevprime(i-1) == i-47 and nextprime(i+1) == i+47: print (i, end=', ')
(PARI) is(n)=isprime(n-1) && isprime(n+1) && precprime(n-2)==n-47 && nextprime(n+2)==n+47 \\ Charles R Greathouse IV, Jun 08 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Karl V. Keller, Jr., May 20 2016
STATUS
approved