OFFSET
2,1
COMMENTS
3 and 7 are the only cousin primes with another prime (5) between them. - Harvey P. Dale, Jul 28 2012
LINKS
John Cerkan, Table of n, a(n) for n = 2..10000
FORMULA
Cousin primes are prime pairs that differ by 4.
EXAMPLE
prime(2)=3, 3 + 4 = 7, 3 + 7 + 1 = 11, the first term in the sequence.
MATHEMATICA
Join[{11}, Select[Total/@Select[Partition[Prime[Range[600]], 2, 1], Last[#]-First[#]==4&]+1, PrimeQ]] (* Harvey P. Dale, Jul 28 2012 *)
PROG
(PARI) g4(n) = for(x=2, n, p=prime(x); if(isprime(p+4), y=p+p+4+1; if(isprime(y), print1(y", "))))
(PARI) isA152091(n) = if(n%2==0, 0, isprime(n) && isprime((n-5)/2) && isprime((n+3)/2)) \\ Michael B. Porter, Mar 17 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, Nov 24 2008
STATUS
approved