Submit | All submissions | Best solutions | Back to list |
EI2021Q12 - PRIMECOUNT |
Given two positive integers A and B, assume A ≤ B. Write a program to count the number of prime numbers in the range [A: B]
Input
Two positive integer A, and B (0 < A ≤ B ≤ 108)
Output
The number of prime numbers
Example
Input: 10 25 Output: 5