Sum multiples of 3 and 5: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Changed to Wren S/H) |
(Added UIUA) |
||
Line 4,888: | Line 4,888: | ||
Completed in 4 seconds. |
Completed in 4 seconds. |
||
=={{header|UIUA}}== |
|||
<syntaxhighlight> |
|||
End ← 1000 |
|||
MultOfthree ← ⊚=0◿3 # indices where divisible by 3 |
|||
Indicesthree ← MultOfthree ↘1⇡End |
|||
MultOffive ← ⊚=0◿5 # indices where divisible by 5 |
|||
IndicesFive ← MultOffive ↘1⇡End |
|||
/+ ⊏⊂ Indicesthree IndicesFive ↘1⇡End # join, select and sum |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
233168 |
|||
</pre> |
|||
=={{header|UNIX Shell}}== |
=={{header|UNIX Shell}}== |