add two prime related C++ code