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

PROGRAMMING:Statistical prime sum

Luz5年前 (2021-05-10)题库455
This problem requires statistics of the number of prime numbers in the given integer $$M $$and $$n $$intervals and their summation.
###Input format:
Input gives two positive integers $$M $$and $$n $$($$1 / Le M / Le n / Le 500 $$) in one line.
###Output format:
Output the number of prime numbers and their sum in the interval of $$M $$and $$n $$in a row, separated by spaces.
###Input example:
```in
10 31
```
###Output example:
```out
7 143
```






answer:If there is no answer, please comment