Find the greatest integer less than the number

$$1 + \frac{1}{\sqrt{2}} + \frac{1}{\sqrt{3}} + \cdots + \frac{1}{\sqrt{1000000}}$$

Let's think step by step and output the final answer within \boxed{}.
user