The probability that Nx is a prime is given by
∏PN<Nx<PN+1i=1Pi−1Pi=∏PNi(1−1Pi) when PN=Nx the associated probability is 1.
where PN is the Nth prime smaller but closest to or equal to Nx.
The expected value of Nx statistically is then,
E[Nx]=∑x→∞1(Nx∏PN<Nx<PN+1i=1Pi−1Pi)
the summation is over all Nx positive integer; and 1 not being a prime by definition.
E[Nx]=∑x→∞2(Nx∏PN<Nx<PN+1i=1Pi−1Pi)
The starting value of 1 prove to be very troublesome as far as consistency is concern. The value of 12 for P2 can be argued as the probability of any number Nx being odd or even. Strictly speaking 2≮2 and so ?<2<2 from the expression PN<Nx<PN+1 does not hold.
Consider the term PN<Nx<PN+1 , the numbers Nx between
two consecutive primes PN,PN+1. All these numbers will share the same probability of
∏Nx1(12)(23)(45)(67)...PN−1PN
Some may argue that since such Nx are between two consecutive primes, they are not primes and so have a probability of zero being prime. The point is to calculate expected value E[Nx]; Nx is considered a random variable here. The expected value of Nx being prime is not the average value of primes in a given set of prime numbers.