Math problems from projectEuler.net solved with c++