Proof. Suppose M were the largest prime. Consider M!+1.
Every integer greater than 1 has a prime factor, so there exists a prime p such that
p∣M!+1.
Since M is the largest prime, p≤M, and hence
p∣M!.
Therefore,
p∣((M!+1)−M!)=1,
a contradiction. □
Definition
π(x):=#{p≤x:p is prime}.
Chebyshev Prime Estimate
For x sufficiently large,
(log2−o(1))logxx≤π(x)≤(2log2+o(1))logxx,where o(1)→0 as x→∞.
Proof
Consider (n!)2(2n)!=(n2n)=∏p≤2np primepep(n),
where ep(n) is the exponent of p in (n2n).
Legendre’s formula. Let vp(m!) denote the exponent of p in m!=1⋅2⋅3⋯m. Then
ep(n)≤logplog2n as we can get from when pj>2n the summing term above is just 0.
Now
(n2n)≤∏p≤2np primeplogplog(2n)=(2n)π(2n).
On the other hand, (n2n)≥2n+11∑j=02n(j2n)=2n+122n.
Hence
So we’ve done with the left hand side inequality, now
4n=(1+1)2n≥(n2n)≥∏n<p≤2np primep≥nπ(2n)−π(n).
Taking logarithms gives
π(2n)−π(n)≤logn2nlog2.
Put x=2jm−ℓ, where 0≤ℓ<2j and m∈N. Then π(x)≤π(2jm)=∑i=1j[π(2im)−π(2i−1m)]+π(m).
Choose j such that 2j≍(logx)2, and put m=⌈x/2j⌉. Then
π(x)≤π(2jm)=i=1∑j[π(2im)−π(2i−1m)]+π(m)≤i=1∑jlog(2i−1m)2imlog2+π(m)≤i=1∑jlogm2imlog2+π(m)≤logm2j+1mlog2+m.
Therefore,
π(x)≤logx−jlog2=(logx)(1+o(1))log(x/2j)2x(1+o(1))(x+2j)log2+O((logx)2x)=o(logxx)2jx+O(1).
Henceπ(x)≤(2log2+o(1))logxx.π(x)≤(logx)(1−o(1))2x(1+o(1))+o(logxx)=logx2x(1+o(1)).□
von Mangoldt function
The function Λ is defined by Λ(n):={logp,0,n=pk,p prime,k≥1,otherwise.
second Chebyshev function
The second Chebyshev function is defined as the sum of von Mangoldt function, that is:
ψ(x):=∑n≤xΛ(n).
Theorem
a(x)x/logxπ(x)→1⟺b(x)xψ(x)→1.
Proof. We shall show that a(x)−b(x)→0.
b(x)=x1n≤x∑Λ(n)=x1p≤x∑logp+pk≤xk>1∑logp=x1[p≤x∑logp+o(1)].
as ∑pk≤xk>1logp≤xlogx+x31logx⋯=O(xlog2(x)), the number of non-zero term in the sum can’t exceed log2x , from k≤log2x
For fixed 0<ε<1, almost every integer in {1,…,x} is at least x1−ε. For x1−ε<p≤x,
(1−ε)logx≤logp≤logx,
so logp=(logx)(1+O(ε)), for x1−ε<p≤x. Thus
p≤x∑logp=p≤x1−ε∑logp+x1−ε<p≤x∑logp=O(x1−εlogx)+π(x)−≤x1−επ(x1−ε)(logx)(1+O(ε))=O(x1−εlogx)+π(x)logx+O(επ(x)logx).∑p≤xlogp=O(x1−εlogx)+π(x)logx+O(εx) by ChebyshevO(επ(x)logx).
Set ε=logx2loglogx. Then
x1−εlogx=logxx=o(x),εx=o(x).
So we get ∑p≤xlogp=π(x)logx+o(x)
Hence, using Chebyshev’s bounds there exists c that π(x)logx≥cx, so π(x)logxE(x)≤cxE(x)→0 when E(x)=o(x), thus o(x)=π(x)logxo(1)∑p≤xlogp=(π(x)logx)(1+o(1)).□Corollary.ψ(x)=O(x).Proof. This follows from the preceding proof. □