A227067 Least n-prime p such that the number of even n-primes (<= p) equals the number of odd n-primes (<= p).
3, 51, 32151, 300863849741
Offset: 1
Examples
The first such prime is 3 because up to 3 there are an equal number of even and odd primes. The first such semiprime is 51 because there are 9 evens and 9 odds: 4, 6, 10, 14, 22, 26, 34, 38, 46 and 9, 15, 21, 25, 33, 35, 39, 49, 51.
Programs
-
Mathematica
nn = 3; Table[p = 1; odds = 0; evens = 0; While[odds*evens == 0 || odds != evens, p++; If[PrimeOmega[p] == n, If[OddQ[p], odds++, evens++]]]; p, {n, nn}]
Extensions
a(4) from Donovan Johnson, Aug 13 2013
Comments