Sum multiples of 3 and 5: Difference between revisions
Content deleted Content added
→{{header|Uiua}}: Alternative solution. |
|||
Line 4,898:
IndicesFive ← MultOffive ↘1⇡End
/+
</syntaxhighlight>
{{out}}
233168
</pre>
Alternatively, leaving the 0th element in place means index of n == n, so a simpler solution would be:
<syntaxhighlight>
End ← 1000
MultOf ← ⊚=0◿
/+◴⊂⊃(MultOf3)(MultOf5)⇡End
</syntaxhighlight>
=={{header|UNIX Shell}}==
|