The smallest n that satisfies your request is n = 4.
Your request is: the minimum n such that the interval [2ⁿ⁻¹, 2ⁿ]
includes at least 2n/2 - 2 primes.
I assume that n should be even, otherwise the number 2n/2 - 2 is not an integer
and you should replace it by the floor ( or ceiling) function!
n=1, [1,2] includes the prime 2
n = 2, [2,2²] includes the primes 2 and 3
n = 3, [2²,2³] includes the primes 5 and 7
n = 4, [2³,2⁴] includes 11 and 13 it includes exactly 24/2 - 2 = 2
primes which can be accepted.
To study the general case for your question, you can read more about Bertrand's postulate and its generalizations that discuss the number of primes in the interval
[m, 2m].
https://en.wikipedia.org › wiki › Bertrand's_postulate
I've read up on some generalizations on Bertrand's Postulate, but I'm still not coming up with a proof of why there is a guarantee of 2^(n/2)-2 primes in [2^(n-1),2^n]. The closest I've seen is reasoning of why there is at least sqrt(2n)/n primes in (n,2n), which would give me 2^(n/2)/2 for my interval, so not quite to the result I need.
For n=6, it would be the interval [2^5,2^6], which would include 37, 41, 43, 47, 53, 59, and 61, so this would exceed 2^3-2=6. I was not claiming in my question that this is true for all n (and I did forget to state n was even). I am trying to determine if it is true for all n>N for some positive integer N and to figure out why the inequality would be true for those cases.