Count primes#1126

Count primes

1 segundo
128 megabytes
Media

Count the number of prime numbers in the given interval [l, r] (0 \leq l \leq r \leq 2147483647, r - l \leq 10^6).

Entrada

Two integers and .

Salida

Print the number of primes in the interval [l, r].

Ejemplos

Ejemplo 1

Loading
Loading