RosettaCodeData/Task/Babbage-problem/Nim/babbage-problem.nim

5 lines
68 B
Nim

var n : int = 0
while n*n mod 1_000_000 != 269_696:
inc(n)
echo n