Sum multiples of 3 and 5: Difference between revisions
m
→Efficient solution
m (Adding the immediate (and slower) solution) |
|||
Line 3,976:
≫
===Efficient solution===
This is a straightforward way to calculate the sum for higher values of n, taking into account that the sum of multiples of 3 and 5 is the sum of multiples of 3
≪ → n
≪ 0 1 3 FOR j
|