Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Babbage-problem/Swift/babbage-problem.swift
Normal file
8
Task/Babbage-problem/Swift/babbage-problem.swift
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import Swift
|
||||
|
||||
for i in 2...Int.max {
|
||||
if i * i % 1000000 == 269696 {
|
||||
print(i, "is the smallest number that ends with 269696")
|
||||
break
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue