#include<bits/stdc++.h>
using namespace std;
int main()
{
long n;
while(cin>>n)
{
string s;
cin>>s;
s+=',';
long i,p=0;
for(i=0; i<s.size(); i++)
{
if(s[i]==',')
{
if( p == 2 || p == 3 || p == 5 || p == 7 || p == 13 || p == 17 || p == 19 )
printf("Yes\n") ;
else printf("No\n");
p=0;
}
else
{
p=p*10+s[i]-48;
}
}
}
}
using namespace std;
int main()
{
long n;
while(cin>>n)
{
string s;
cin>>s;
s+=',';
long i,p=0;
for(i=0; i<s.size(); i++)
{
if(s[i]==',')
{
if( p == 2 || p == 3 || p == 5 || p == 7 || p == 13 || p == 17 || p == 19 )
printf("Yes\n") ;
else printf("No\n");
p=0;
}
else
{
p=p*10+s[i]-48;
}
}
}
}
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন