Update printFactors.cpp