Factors of an integer: Difference between revisions
Content added Content deleted
(Added Uiua solution) |
m (→{{header|Uiua}}: Fixed the maths!) |
||
Line 6,959: | Line 6,959: | ||
<syntaxhighlight lang="uiua"> |
<syntaxhighlight lang="uiua"> |
||
Factors ← |
Factors ← ◴⊂⟜(⇌÷)⊸(▽:⟜≡(=0◿)⊙¤⊸(↘1⇡+1⌊√)) |
||
⍚Factors {45 53 64} |
⍚Factors {45 53 64} |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
{{out}} |
{{out}} |
||
<pre> |
<pre> |
||
{[1 3 5 9 15 45] [1 53] [1 2 4 16 32 64]} |
{[1 3 5 9 15 45] [1 53] [1 2 4 8 16 32 64]} |
||
</pre> |
</pre> |
||