#include #include void result(int *found, int index); void arraydump(int *array, int numElements); void main(int argc, char *argv[]) { int numPrimes; int thisPrime; unsigned int thisNum; thisNum=1; thisPrime=0; numPrimes=atoi(argv[1]); int *found; found = (int *) malloc(sizeof (int) * numPrimes); for (int i=0; i 0) { if (thisNum % found[y] == 0) { zerosFound++; } } } if (zerosFound == 1) { for (int x=0; x%d\n",i,val); } printf("-------------------------\n"); } void result(int *found, int index){ printf("The %dth prime is %d\n", index+1, found[index]); }