-->
当前位置:首页 > 题库 > 正文内容

编程题:Prime Numbers

Luz3年前 (2022-05-10)题库764
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











答案:若无答案欢迎评论

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。