RosettaCodeData/Task/Babbage-problem/Swift/babbage-problem.swift
2023-07-01 13:44:08 -04:00

8 lines
141 B
Swift

import Swift
for i in 2...Int.max {
if i * i % 1000000 == 269696 {
print(i, "is the smallest number that ends with 269696")
break
}
}