You are given two integers $$$n$$$ and $$$k$$$. Determine whether there exists an array $$$a_0$$$, $$$a_1$$$, $$$\ldots$$$, $$$a_{n-1}$$$ with the properties:
The input contains two integers $$$n$$$ and $$$k$$$, the length of the array and the value of the modulo ($$$2 \leq n \leq 10^9$$$, $$$1 \leq k \leq 10^9$$$).
If there exists such an array, output "Yes", otherwise output "No".
4 2
Yes
4 4
No
Name |
---|