Sum multiples of 3 and 5: Difference between revisions

Content deleted Content added
Line 499: Line 499:
<pre>233333333333333333333166666666666666666668</pre>
<pre>233333333333333333333166666666666666666668</pre>


Another alternative is

<lang mathematica> Union @@ Range[0, 999, {3, 5}] // Tr </lang>
<lang mathematica> Union @@ Range[0, 999, {3, 5}] // Tr </lang>