solve 45 in uiua (FAST)
This commit is contained in:
12
45/main.ua
Normal file
12
45/main.ua
Normal file
@@ -0,0 +1,12 @@
|
||||
# project euler 45
|
||||
|
||||
T ← ÷2×⊸+₁
|
||||
P ← ÷2×⊸(-1×3)
|
||||
H ← ×⊸(-1×2)
|
||||
|
||||
Is! ← =⟜⌊°^
|
||||
|
||||
+1⇡100000
|
||||
⊃⊃T P H # get some numbers
|
||||
+1⊚(↧∩⌞˜∊) # for all T, see if in P and H
|
||||
T⊣ # get third such trinum
|
||||
Reference in New Issue
Block a user