4. (6 points) The sum of all odd numbers from 1 to 100 is $\qquad$
【Solution】Solution: $(1+99) \times 50 \div 2$,
$$
\begin{array}{l}
=100 \times 25, \\
=2500 ;
\end{array}
$$

Therefore, the answer is: 2500 .