#include #include #include int main() { int a,cnt,val; cnt=val=1; do{ val+=2; a=prime(val); if(a==0) { cnt++; printf("%i cnt:%i\n",val,cnt); } }while(cnt<10001); printf("\n\t%i\n\n",val); 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