OFFSET
1,2
COMMENTS
The corresponding numbers for twin primes and sexy primes are in A007508 and A080841, the greater of twin primes, cousin primes and sexy primes are in A006512, A046132 and A046117 respectively.
In this sequence, only the upper member of each prime cousin pair is counted. See A152052 for the variant where only the lower member is counted. - James Rayman, Jan 17 2021
LINKS
A. Granville and G. Martin, Prime number races, Amer. Math. Monthly vol 113, no 1 (2006) p 1.
Eric Weisstein's World of Mathematics, Cousin Primes.
PROG
(PARI) {c=0; p=5; for(n=1, 9, while(p<10^n, if(isprime(p-4), c++); p=nextprime(p+1)); print1(c, ", "))}
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Jason Earls, Mar 28 2003
EXTENSIONS
a(8) and a(9) from Klaus Brockhaus, Mar 30 2003
More terms from R. J. Mathar, Aug 05 2007
a(13)-a(15) from Martin Ehrenstein, Sep 03 2021
STATUS
approved