Prob 0013 ‐ Large Sum - maccergit/Euler GitHub Wiki
Defining the data as a constant list makes this trivial in Python. Like many of these problems, Python's built in support for large numbers also helps.
01
Since this is trivial and fast, we just do the direct approach - sum the numbers, convert to string (so we can easily access digits), and return the slice we need (first 10 characters). Since this is not about how the problem scales from a small example to the larger problem, we time it instead of using a plot - runs in about 3 µsec.