We know that the number of primes in a given interval $(0,x)$ is about $x/logx$. Now, I have an inequality of the form $p_{n}≤x$ where $p_{n}$ is the $n$-th prime. Then I deduce that $n<x/logx$
My question is: Is this estimation correct and how I can measure the corresponding error.