#include #include #include int main() { int a,ar[78498],b,cnt,max,sm,vl; cnt=max=vl=-1; while(vl<1000000) { vl++; if(prime(vl)==0) ar[cnt++]=vl; } cnt++; for(a=0;amax) max=sm; } printf("\n\t%i\n\n",max); system("pause"); return 0; } int prime(int val) { switch(val) { case 0: // case 1:return 1;break; // I have to specify these special numbers because the 'default' case would interpret them incorrectly! case 2:return 0;break; // default:{ if(val%2!=0) { int a=3; for(;a