Function to pre - calculate the prime [ ] prime [ i ] denotes whether i is prime or not
#include <bits/stdc++.h> NEW_LINE using namespace std ; const int mxn = 1e4 + 1 ; bool prime [ mxn + 1 ] ; void SieveOfEratosthenes ( ) {