#include #include #include #include #include // istringstream #include // sort #include // pair #include // DBL_MAX typedef long long ll; using namespace std; const int maxN = 10000; bool ps[maxN-1]; int main(){ int N; cin >> N; // is able to win vector able (max(N+1,4), false); able[0] = true; able[1] = true; // prime (<= N) vector primes; for(int i=0; i