Primes
Easy
Execution time limit is 10 seconds
Runtime memory usage limit is 256 megabytes
Let and be two integers. Consider the following set:
= { | prime and }.
Find the cardinality of the set .
Input
Consists of several tests. The input of each test is represented on a single line. Any two consecutive tests are separated by an empty line. For each test, the values for and are given on the same line, separated by exactly one space.
Output
For each test, the result will be written on a different line (the tests will have the same order as in the input). The results of any two consecutive tests will be separated by an empty line. For each test, the result will be the cardinal of the set .
Examples
Input #1
Answer #1
Submissions 8K
Acceptance rate 23%