# A proof for prime number theorem!

From here we get:

$\ln(N)-1$ ~ $\sum_{P≤N}\frac{\ln(P)}{P}$

Transform this into following using function $p(x)$ defined as the $x_{th}$ prime, and let $k$ be a variable

$∫_{0}^{k}\frac{\ln(p(x))}{p(x)}dx$ ~ $\ln(p(k)-1)$

Take derivative with respect to $k$ on both sides

$\frac{\ln(p(k))}{\cancel{p(k)}}$ ~ $\frac{dp(k)}{d(k)} \times \frac{1}{\cancel{p(k)}}$

$\ln(p(k))$ ~ $\frac{dp(k)}{dk}$

Now consider instead of taking derivative of $p(k)$ we take derivative of $p(\frac{k}{\ln(k)})$

$\frac{dp(\frac{k}{\ln(k)})}{dk}$ ~ $\ln(p(\frac{k}{\ln(k)})) \times (\frac{1}{\ln(k)}-\frac{1}{(\ln(k))^2})$ ~ $\frac{\ln(p(\frac{k}{\ln(k)}))}{\ln(k)}(1-\frac{1}{\ln(k)})$ ~ $\frac{\ln(p(\frac{k}{\ln(k)}))}{\ln(k)}$

Let $p(\frac{k}{\ln(k)})=f(k)$

$f'(k)$ ~ $\frac{\ln(f(k))}{\ln(k)}$

We can observe that if $f(k)=k$ then $f'(k)=\frac{\ln(f(k))}{\ln(k)}$

So $p(\frac{k}{\ln(k)})$ ~ $k$

$\pi(k)$ ~ $\frac{k}{\ln(k)}$ Note by Zakir Husain
11 months, 2 weeks ago

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.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold
- bulleted- list
• bulleted
• list
1. numbered2. list
1. numbered
2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in $$ ... $$ or $ ... $ to ensure proper formatting.
2 \times 3 $2 \times 3$
2^{34} $2^{34}$
a_{i-1} $a_{i-1}$
\frac{2}{3} $\frac{2}{3}$
\sqrt{2} $\sqrt{2}$
\sum_{i=1}^3 $\sum_{i=1}^3$
\sin \theta $\sin \theta$
\boxed{123} $\boxed{123}$

Sort by:

Very cool! Also, what is the Euler constant? @Zakir Husain @Aruna Yumlembam

@Yajat Shamji See this and this

- 11 months ago

You can use the above result to find the Euler constant 0.577....

- 11 months, 1 week ago

@Aruna Yumlembam - Can you tell me how? I have tried a lot.

- 11 months ago

The following is the argument,since ln(N)-1 is approximately ln(2)/2+ln(3)/3+ln(5)/5+....ln(p)/p ,this implies -ln(N)+1 is approx. -(ln(2)/2+ln(3)/3+ln(5)/5+.....ln(p)/p),then add 1/2+1/3+1/4+1/5+....+1/N to both sides and take the limit of N approaches infinity. Then limit as N approaches infinity (1/2+1/3+1/4+1/5+....1/N)-(ln(2)/2+ln(3)/3+ln(5)/5+....+ln(p)/p) must approximately be 0.577..,where p<N. I also did a test ,the result came out correctly up to the second decimal place.

- 11 months ago