Predicting the number of primes less than n is a contentious mathematical subject. Here are some of my thoughts, from messing around with factorials and the natural log. Note that many of my arguments are not rigorous. Feel free to give feedback below.
By definition,
N!=N×(N−1)×(N−2)×...×2×1
Prime-factor all of the terms on the right:
N×(N−1)×(N−2)×...×2×1=p≤N∏pνp(N!)
where νp(x) is the "p-adic valuation of x" (exponent of p in the prime factorization of x).
Take the natural logarithm of both sides:
lnN!=p≤N∑νp(N!)lnp
Recall Stirling's asymptotic formula for the factorial:
N!∼2πeNNN+21
⟹lnN!∼(N+21)lnN−N+ln(2π)
All the other terms on the right hand are small compared to NlnN when N is very large, so
lnN!∼NlnN
So:
p≤N∑νp(N!)lnp∼NlnN
So far, we have managed to link the natural logarithm with the number of primes in the prime factorization of N!. Let's focus on νpN!. One of Legendre's many theorems (1808) tells us that
νp(N!)=1≤k≤⌊logpN⌋∑⌊pkN⌋
Now, ⌊pkN⌋≈pkN Here's where the guessing comes in: as ⌊pkN⌋≈pkN, I conjecture that 1≤k≤⌊logpN⌋∑⌊pkN⌋∼Nk=1∑Np−k, and in turn that k=1∑Np−k∼k=1∑∞p−k. I will assume from now on that this is true for large N. As such,
νpN!∼k=1∑∞p−k=N(1−p11−1)=p−1N
We thus have
p≤N∑p−1Nlnp∼NlnN
⟹p≤N∑p−1lnp∼lnN
∑p≤Np−1lnp (green points) v.s. lnN (red line) from N=2 to N=20. Created using Desmos
This discussion board is a place to discuss our Daily Challenges and the math and science
related to those challenges. Explanations are more than just a solution — they should
explain the steps and thinking strategies that you used to obtain the solution. Comments
should further the discussion of math and science.
When posting on Brilliant:
Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.
Markdown
Appears as
*italics* or _italics_
italics
**bold** or __bold__
bold
- bulleted - list
bulleted
list
1. numbered 2. list
numbered
list
Note: you must add a full line of space before and after lists for them to show up correctly
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
@Andrei Li- I also find a proof for prime number theorem
I tried to find some more interesting results. See here
Log in to reply
Cool! I wonder if we could go further than that...
Recall that lnN∼N(NN1−1). If we substitute for my result, we get
p≤N∑pp−1pp1−1∼N(NN1−1) ⟹p≤N∑p[k=1∑p−1ppk]−1∼N(NN1−1)
For your result:
p≤N∑(pp1−1)∼N(NN1−1) ⟹p≤N∑pp1−p≤N∑1∼N(NN1−1)
The second term on the left hand is the prime counting function!
p≤N∑pp1−π(N)∼N(NN1−1) p≤N∑pp1−π(N)∼lnN
If only we could evaluate that pesky ∑p≤Npp1...
P.S. I used \lfloor and \rfloor to format the floor function.
@Brilliant Mathematics, @Emma Wilson has posted a comment not related to mathematics.
Log in to reply
Thank you for notifying us. We will take action on that account shortly.