@Adhavan999 [https://github.com/CodeVITap/ProjectEuler/blob/master/cpp/001.cpp]() runs at `O(n)` time. Using the summation formula for integers can make it run faster [`O(1)` time].
@Adhavan999 https://github.com/CodeVITap/ProjectEuler/blob/master/cpp/001.cpp runs at
O(n)time. Using the summation formula for integers can make it run faster [O(1)time].