Jump to content

Factors of an integer: Difference between revisions

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

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.