correctly label euler solutions

This commit is contained in:
2025-12-23 17:08:42 +01:00
parent e447d4d7cd
commit 3be891c7cc
17 changed files with 139 additions and 131 deletions

View File

@@ -1,13 +1,7 @@
func main[] : i64
let out: i64 = 0
for a in 500..1000
for b in 500..1000
if a * b > out
let s: str = str.from_i64(a * b)
let s_rev: str = str.reverse(s)
if str.equal(s, s_rev)
out = a * b
mem.free(s)
mem.free(s_rev)
io.println_i64(out)
for a in 1..1000
for b in 1..1000
let c: i64 = 1000 - b - a
if a * a + b * b == c * c
io.println_i64(a * b * c)
return 0