Tap here to switch tabs
Problem
Submissions

Problem: Sum Multiples

Sum Multiples asks you to return the sum of every integer from one through a given positive number that is divisible by three, five, or seven, counting each qualifying number once.

Statement

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

Constraints:

  • 1≤1 \leq n ≤103\leq 10^3

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Sum Multiples

Sum Multiples asks you to return the sum of every integer from one through a given positive number that is divisible by three, five, or seven, counting each qualifying number once.

Statement

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

Constraints:

  • 1≤1 \leq n ≤103\leq 10^3