Files
project_euler/55/main.ua
T
2025-09-19 07:42:46 +02:00

11 lines
330 B
Plaintext

# project euler 55
c ← ⍜⊥₁₀(+⟜⇌)
p ← ≍⟜⇌⊥₁₀
⇡10000
°□⊃⊢⊣⊕□⊙⍉⊙⊟⊸≡p⊸≡c # first iteration
Iter ← ⊙(⊂□)⊃(▽¬)▽⊙⍉⊙⊂⊸≡p≡c⊸⊢⍉
◌◌⍢(+1⊙(Iter)|↧⊙(≠0⧻)<50)1
/◇⊂ ⍚≡⊣
⧻⊚¬˜∊⇡10000 # i found the non-lychrel numbers