solution to problem 10 added, tried Math::Prime::Util for other solutions