This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A095006 #15 Jun 20 2024 02:37:13 %S A095006 1,1,0,3,2,5,4,23,27,62,95,222,367,777,1269,2910,4859,10140,17714, %T A095006 36714,66020,133400,245959,493532,916913,1822087,3428633,6782008, %U A095006 12870735,25339113,48419194,95194890,182818705,358637144,691891351,1355985684,2625053871,5142673207 %N A095006 Number of evil primes (A027699) in range ]2^n,2^(n+1)]. %H A095006 Antti Karttunen and John Moyer, <a href="/A095062/a095062.c.txt">C-program for computing the initial terms of this sequence</a>. %H A095006 <a href="/index/Pri#primesubsetpop2">Index entries for sequences related to occurrences of various subsets of primes in range ]2^n,2^(n+1)]</a>. %F A095006 a(n) = A036378(n) - A095005(n). %e A095006 From _Michael De Vlieger_, Feb 27 2017: (Start) %e A095006 a(2) = 1 since between 2^2 and 2^3 only the prime 5 (binary 11) has an even number of 1s. %e A095006 a(3) = 0 since none of the primes between 2^3 and 2^4 have an even number of 1s in their binary expansions. %e A095006 a(4) = 3 since the primes 17, 23, and 29 have an even number of 1s in their binary expansions (i.e., 10001, 10111, 11101). (End) %t A095006 Table[m = Count[Prime@ Range[PrimePi[2^n] + 1, PrimePi[2^(n + 1) - 1]], k_ /; EvenQ@ DigitCount[k, 2, 1]]; Print@ m; m, {n, 24}] (* _Michael De Vlieger_, Feb 27 2017 *) %Y A095006 Cf. A027699, A036378, A095005. %K A095006 nonn %O A095006 1,4 %A A095006 _Antti Karttunen_ and _Labos Elemer_, Jun 01 2004 %E A095006 a(34)-a(38) from _Amiram Eldar_, Jun 20 2024