Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Sum of Integers by miranda.chen3
from fractions import Fraction
def sum_upto_n(N: int) -> int:
if N == Fraction: return False
return N * (N + 1) // 2
Oct. 29, 2025