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

PROGRAMMING:Count the number of prime numbers in the interval of given integer m and N and sum them.

Luz5年前 (2021-05-10)题库422
This is a programming problem template. Please write the title description here. For example: this topic requires reading in 2 integers m and N, and then output their sum.
###Input format:
The input gives two positive integers m and N in one line (1 ≤ m ≤ n ≤ 500).
###Output format:
In a row, output the number of prime numbers and their sum in M and N intervals in order, separated by spaces.
###Input example:
```in
10 31
```
###Output example:
```out
7 143
```







answer:If there is no answer, please comment