#d1706. 质区间长度
质区间长度
Prime Interval Length
Problem Description
For an interval and an integer , it is called a prime interval if and only if the number of primes in that interval is at least .
Given the interval and , find the minimum length such that for every , the interval is a prime interval.
Input Format
One line with three integers , as described (, ).
Output Format
Output one integer on a single line.
If no such exists, output .
Sample Input
6 14 2
Sample Output
6
Constraints
, .