A098429 Number of cousin prime pairs (p, p+4) with p <= n.
0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10
Offset: 1
Keywords
Examples
First cousin prime pairs: (3,7),(7,11),(13,17),(19,23), ... therefore the sequence starts: 0 0 1 1 1 1 2 2 2 2 2 2 3 ...
Links
- Daniel Forgues, Table of n, a(n) for n=1..99996
- Eric Weisstein's World of Mathematics, Cousin Primes
Programs
-
Mathematica
Accumulate[Table[If[PrimeQ[i]&&PrimeQ[i+4],1,0],{i,1,100}]] (* Seiichi Kirikami, May 28 2017 *)
Extensions
Edited by Daniel Forgues, Aug 01 2009
Comments