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

PROGRAMMING:Output prime (multiple sets of data)

Luz5年前 (2021-05-10)题库523
There are two integers a and B (2 < = a < b), which output all prime numbers in the integer interval [a, b].
Now we know that there are many groups of data, please process them in turn.
Input sample: 100 110 output sample: 101103107109
###Input format:
There are multiple sets of data, each with 2 integers a and B.
###Output format:
Each group of data output results (comma separated between prime numbers) after the new line.
###Input example:
```in
500 600
800 900
200 250
```
###Output example:
```out
503,509,521,523,541,547,557,563,569,571,577,587,593,599
809,811,821,823,827,829,839,853,857,859,863,877,881,883,887
211,223,227,229,233,239,241
```







answer:If there is no answer, please comment