Prime factors kata in C++.