Number of primes in range

Number of primes in range. A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. Given two integers A and B, print the number of prime numbers between them, inclusive.

Test Case Input (A and B) Expected Output
1 3
10
3
2 10
20
4
3 20
30
2