Hmwk 2 Dieterc2

I think you mean listPrimes? The reason is that we are returning an array of ints, not a single int. When dealing with an array of ints, the usual way to keep track of it is using a pointer ... an int* that holds the address of the first element of the array.