Solution for problem 13 now prints only the required first 10 digits.