solved 9 w/ c++
solved euler 10, c++