Prime Numbers Calculator in C++