#include using namespace std; bool isprime(int num, int i, int (&primes)[333333]) { for(int j=0;j 1000000) { break; } primes[i] = prime; cout<