RosettaCodeData/Task/Babbage-problem/Dyalect/babbage-problem-2.dyalect

7 lines
132 B
Plaintext

for i in 2..Integer.Max {
if i * i % 1000000 == 269696 {
print("\(i) is the smallest number that ends with 269696")
break
}
}