leetle

Daily challenge for 2025-12-10

344. Sum of Multiples

Given a positive integer n, return the sum of all integers in the range [1, n] inclusive that are divisible by 3 or 5.

Example:
Input: n = 10
Output: 33

Explanation: Numbers divisible by 3 or 5: 3, 5, 6, 9, 10. Sum = 33.

Run this challenge interactively in Python or JavaScript when the app loads.