Given L,R, please compute the number of primes in the interval [L,R].
1≤L≤R<231,R−L≤106。
The first line contains two positive integers L and R.
One line containing a single integer, the number of primes in the interval.
2 11
5
Translated by ChatGPT 5