Update greatestPrimeFactor.cpp