Given a positive integer
n
, find the sum of all integers in the range[1, n]
inclusive that are divisible by3
,5
, or7
.Return an integer denoting the sum of all numbers in the given range satisfying the constraint.
1 | class Solution { |
Given a positive integer
n
, find the sum of all integers in the range[1, n]
inclusive that are divisible by3
,5
, or7
.Return an integer denoting the sum of all numbers in the given range satisfying the constraint.
1 | class Solution { |