OFFSET
1,1
COMMENTS
Barycenter of cousin primes (A029708; see also A029710, A023200, A046132), divided by 3. When p>3 and p+4 both are prime, then p = 1 (mod 6) and p+2 = 3 (mod 6). - M. F. Hasler, Jan 14 2013
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A029708(n)/3. - Zak Seidov, Aug 07 2009
EXAMPLE
15*3 +/- 2 = 43,47 (both prime).
MAPLE
select(t -> isprime(3*t+2) and isprime(3*t-2), [seq(t, t=3..1000, 2)]); # Robert Israel, May 28 2017
MATHEMATICA
Select[Range[600], AllTrue[3#+{2, -2}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Feb 03 2019 *)
PROG
(Magma) [n: n in [1..1000]|IsPrime(3*n-2)and IsPrime(3*n+2)] // Vincenzo Librandi, Dec 13 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Kyle D. Balliet, Mar 07 2009
STATUS
approved