PROGRAMMING:Count the number of prime numbers in the interval of given integer m and N and sum them.
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
###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