AdvancedRating 1700
Primes in a Window
Count the primes between L and R (inclusive). R can be as large as 10¹², but R − L ≤ 10⁶.
Input
Two integers L and R.
Output
One integer.
Sample 1
Input
1 10
Output
4
Sample 2
Input
11 19
Output
4
Output appears here