3 人解决，11 人已尝试。
4 份提交通过，共有 51 份提交。
9.8 EMB 奖励。
单点时限: 3.0 sec
内存限制: 256 MB
Little Johnny, a boy 11 years old, is asked by his friend about a riddle in a popular role playing game ‘Neverending Fantasy XIV’. The riddle is to check whether the greatest common divisor of given two integers and are a prime number. In this game, such prime number is called hidden prime number. If he solve this riddle, he can change his character’s class to “Mathematician.” However, Johnny doesn’t know how to solve this riddle because his brother helps him. Your job is to write a program to solve this riddle and help Johnny.
Input consists of multiple test cases. Input consists of multiple test cases. Each test case contains two positive integer and (). Input is terminated by a case of , and it should not be processed.
For each test case, you should output “Yes” if there is a hidden prime number. Otherwise, output “No”.
4 8 3 15 0 0