-->
当前位置:首页 > 题库

编程题:Prime Numbers

Luz4年前 (2022-05-10)题库859
Your program reads two natural numbers m and n in, and prints out the sum of all prime numbers within $[m, n]$, where $1 \leqslant m\le n\leqslant 10^4$.

### Input Format:

Two positive whole numbers.

### Output Format:

A number which is the sum of all the prime numbers within [m, n].

### Sample Input:
in
10 100


### Sample Output:

out
1043











答案:若无答案欢迎评论