A156874 Number of Sophie Germain primes <= n.
0, 1, 2, 2, 3, 3, 3, 3, 3, 3, 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, 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, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10
Offset: 1
Keywords
Examples
a(120) = #{2, 3, 5, 11, 23, 29, 41, 53, 83, 89, 113} = 11.
Links
- R. Zumkeller, Table of n, a(n) for n = 1..10000
- Eric Weisstein's World of Mathematics, Sophie Germain prime
- Wikipedia, Sophie Germain prime
Crossrefs
Programs
-
Mathematica
Accumulate[Table[Boole[PrimeQ[n]&&PrimeQ[2n+1]],{n,1,200}]] (* Enrique Pérez Herrero, Apr 26 2012 *) Accumulate[Table[If[AllTrue[{n,2n+1},PrimeQ],1,0],{n,200}]]
Formula
a(10^n)= A092816(n). - Enrique Pérez Herrero, Apr 26 2012
Extensions
Edited and commented by Daniel Forgues, Jul 31 2009
Comments