#include <iostream> #include <math.h> using namespace std; int prime[10000]; int count = 0; int ans[10000] = {2, 3, 5, 7, 11, 13, 17, 19, 23, ...