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
Added by: | Ha Minh Ngoc |
Date: | 2021-08-25 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: GOSU |