Solution for euler13