project_euler/problem_001/sol8.py
def solution(n: int = 1000) -> int:
    """
    Returns the sum of all the multiples of 3 or 5 below n.

    >>> solution(3)
    0
    >>> solution(4)
    3
    >>> solution(10)
    23
    >>> solution(600)
    83700
    >>> solution(1000000000)
    233333333166666668
    """

    return sum_divisible_by(3, n) + sum_divisible_by(5, n) - sum_divisible_by(15, n)

    Returns the sum of all the multiples of 3 or 5 below n.

    >>> solution(3)
    0
    >>> solution(4)
    3
    >>> solution(10)
    23
    >>> solution(600)
    83700
    >>> solution(1000000000)
    233333333166666668
    
Returns the sum of all the multiples of 3 or 5 below n.
Returns the sum of all the multiples of 3 or 5 below n .
def solution(n: int = 1000) -> int:
    return sum_divisible_by(3, n) + sum_divisible_by(5, n) - sum_divisible_by(15, n)
def solution ( n : int = 1000 ) -> int : return sum_divisible_by ( 3 , n ) + sum_divisible_by ( 5 , n ) - sum_divisible_by ( 15 , n )
Returns the sum of all the multiples of 3 or 5 below n.
>>> solution(3)
0
>>> solution(4)
3
>>> solution(10)
23
>>> solution(600)
83700
>>> solution(1000000000)
233333333166666668
Returns the sum of all the multiples of 3 or 5 below n . >>> solution ( 3 ) 0 >>> solution ( 4 ) 3 >>> solution ( 10 ) 23 >>> solution ( 600 ) 83700 >>> solution ( 1000000000 ) 233333333166666668
"""
    Returns the sum of all the multiples of 3 or 5 below n.

    >>> solution(3)
    0
    >>> solution(4)
    3
    >>> solution(10)
    23
    >>> solution(600)
    83700
    >>> solution(1000000000)
    233333333166666668
    """
n
int