C++ Solving Project Euler recent problems 820 , 819, ... , 808