Problem 13
For the 13th problem of the Euler project, I started by defining a list containing the one hundred numbers. So, it would be something like:
Then, it was a matter of defining a small function that would return the first 10 digits of the sum of all those numbers:
The result (of executing sumF l) was achieved using the following timing/memory resources: (0.01 secs, 5340404 bytes)
blog comments powered by Disqus