another aoc solution
This commit is contained in:
11
examples/puzzles/euler_08.zr
Normal file
11
examples/puzzles/euler_08.zr
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
|
||||
io.println_i64(n)
|
||||
Reference in New Issue
Block a user