exercism-go/sum-of-multiples
2025-03-09 13:26:08 -04:00
..
.exercism Initialise 2025-03-09 13:26:08 -04:00
cases_test.go Initialise 2025-03-09 13:26:08 -04:00
go.mod Initialise 2025-03-09 13:26:08 -04:00
HELP.md Initialise 2025-03-09 13:26:08 -04:00
README.md Initialise 2025-03-09 13:26:08 -04:00
sum_of_multiples.go Initialise 2025-03-09 13:26:08 -04:00
sum_of_multiples_test.go Initialise 2025-03-09 13:26:08 -04:00

Sum of Multiples

Welcome to Sum of Multiples on Exercism's Go Track. If you need help running the tests or submitting your code, check out HELP.md.

Instructions

Given a number, find the sum of all the unique multiples of particular numbers up to but not including that number.

If we list all the natural numbers below 20 that are multiples of 3 or 5, we get 3, 5, 6, 9, 10, 12, 15, and 18.

The sum of these multiples is 78.

Source

Created by

  • @soniakeys

Contributed to by

  • @alebaffa
  • @bitfield
  • @duffn
  • @ekingery
  • @ferhatelmas
  • @hilary
  • @ilmanzo
  • @kytrinyx
  • @leenipper
  • @petertseng
  • @robphoenix
  • @sebito91
  • @tleen

Based on

A variation on Problem 1 at Project Euler - http://projecteuler.net/problem=1