408190: GYM103048 K K-Primes
Memory Limit:512 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
K. K-Primestime limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard output
Given $$$l$$$ and $$$k$$$, Cuber QQ wants you to answer if there are more than $$$k$$$ primes (i.e., at least $$$k+1$$$ primes) in $$$[l,l+2k)$$$.
InputOne line with two space-separated integers $$$l,k\;(1\le l,k\le 10^8)$$$.
OutputOne line with "Yes" or "No".
ExamplesInput3 3Output
NoInput
2 1Output
Yes