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
232962 is the average of the four consecutive primes 232937, 232961, 232963, 232987.
311712 is the average of the four consecutive primes 311687, 311711, 311713, 311737.
PROG
(Python)
from sympy import isprime, prevprime, nextprime
for i in range(0, 1000001, 6):
if isprime(i-1) and isprime(i+1) and prevprime(i-1) == i-25 and nextprime(i+1) == i+25: print (i, end=', ')
CROSSREFS
KEYWORD
nonn
AUTHOR
Karl V. Keller, Jr., Nov 04 2015
STATUS
approved
