C++ p3 - isPrime function works