Basic formula solution in Clear category for Sum of Integers by Phil15
def sum_upto_n(N: int) -> int: return N * (N + 1) // 2
Oct. 7, 2023