support up to 6 args, euler

This commit is contained in:
2025-06-01 16:12:47 +02:00
parent 7fa08d8b37
commit 8a0fbac739
12 changed files with 213 additions and 24 deletions

14
examples/euler3.zr Normal file
View File

@@ -0,0 +1,14 @@
func print_i64[x : I64] : I64
printf("%ld\n", x)
func main[] : I64
let n: I64 = 600851475143
let f: I64 = 2
while f * f <= n
if n % f == 0
n = n / f
else
f = f + 1
print_i64(n)