delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

View File

@ -0,0 +1,28 @@
#include<iostream>
#include<cmath>
using namespace std;
bool z(int a)
{
for(int i=2;i*i<=a;i++) if(a%i==0) return 0;
return 1;
}
int main()
{
int a,b;
bool d;
while(true)
{
d=1;
cin>>a>>b;
for(int i=2;i<=((a<b)?a:b);i++)
{
if(z(i)){
if(b%i==0)
{
if(a%i!=0) d=0;
}}
}
if(d) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
}
}