Problem 1.

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.

: 1000 보다 작은 3 또는 5의 배수의 합 구하기

 

 

MATH:
" A 를 B 로 나눈 나머지 ( A mod B ) 가 0 이면, 즉, A 가 B 로 나누어 떨어지면,
A 를 B 의 배수, B 를 A 의 약수라고 한다 "