Project Euler problems (C++)