Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int t,n;
- char ch;
- cin>>t;
- cin>>n;
- if(n==2 ||n==3 ||n==5 ||n==7 ||n==13 ||n==17 ||n==19)
- {
- cout<<"Yes"<<endl;
- }
- else
- cout<<"No"<<endl;
- for(int i =1 ; i<t; i++)
- {
- cin>>ch>>n;
- if(n==2 ||n==3 ||n==5 ||n==7 ||n==13 ||n==17 ||n==19)
- {
- cout<<"Yes"<<endl;
- }
- else
- cout<<"No"<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement