another aoc solution
This commit is contained in:
11
examples/puzzles/euler_12.zr
Normal file
11
examples/puzzles/euler_12.zr
Normal file
@@ -0,0 +1,11 @@
|
||||
func main[] : I64
|
||||
let found: I64 = 0
|
||||
|
||||
let i: I64 = 1
|
||||
while true
|
||||
if math.is_prime(i)
|
||||
found = found + 1
|
||||
if found == 10001
|
||||
io.println_i64(i)
|
||||
break
|
||||
i = i + 1
|
||||
Reference in New Issue
Block a user