RosettaCodeData/Task/Arithmetic-numbers/Uiua/arithmetic-numbers.uiua
2026-04-30 12:34:36 -04:00

10 lines
406 B
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Lim ← 20000
Primes ← ▽⊸≡(=⊣⊸(°/×))+2⇡Lim
Divisors ← ▽⤚(=₀◿)⊸(↘1⇡) # Divisors < n
AllDivisors ← ˜⊂⟜Divisors
▽⊸≡(=⊸⌊÷⊃⧻/+AllDivisors)+1⇡Lim
Comps ← -1/+≡(¬∊Primes)
⊃(&p$"Comps in first 10000: _"Comps↙10000
| &p$"10000th: _"⊡9999
| &p$"Comps in first 1000: _"Comps↙1000
| &p$"1000th: _"⊡999 | &p$"First 100: _"↙100)