Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #3 Mar 30 2012 18:51:04
%S 0,0,0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,
%T 4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,
%U 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,7,7,7,7,7,7,7,7,7,7,7
%N Number of safe primes <= n.
%C a(n) = SUM(A156659(k): 1<=k<=n);
%C a(n) = A156874(floor((n-1)\2)).
%H R. Zumkeller, <a href="/A156875/b156875.txt">Table of n, a(n) for n = 1..10000</a>
%H Wikipedia, <a href="http://en.wikipedia.org/wiki/Safe_prime">Safe prime</a>
%e a(120) = #{5, 7, 11, 23, 47, 59, 83, 107} = 8.
%Y A005385, A156874, A156876, A156877, A156878, A000720.
%K nonn
%O 1,7
%A _Reinhard Zumkeller_, Feb 18 2009