« first day (126 days earlier)    last day (15 days later) » 

2:22 PM
#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int n;
	cin>>n;
	int i;

	while(n--){
	    cin>>i;

	    for(int j=2;j*j<=n;j++){
	        if(i%j==0){
	            cout<<"no"<<endl;
	        }
	    cout<<"yes"<<endl;
	    }
	}
	return 0;
}
input
5
23
13
20
1000
99991
 

« first day (126 days earlier)    last day (15 days later) »