the C++ program to solve the problem #434 on ProjectEuler.net