# Problem 6 [Problem 6 link](https://projecteuler.net/problem=6) Instead of the O(N) way to calculate the two sums, there are formulas to calculate them directly. ```{literalinclude} ../../solution/problem6.py ```