This is LaTeX code:

[latex]
\mathbb{E}[X] = \sum_{k=1}^{\infty}{\mathbb{P}(X \geqslant k)}
[/latex]