Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Babbage-problem/Dyalect/babbage-problem-1.dyalect
Normal file
6
Task/Babbage-problem/Dyalect/babbage-problem-1.dyalect
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
var i = 0
|
||||
while i * i % 1000000 != 269696 {
|
||||
i += 1
|
||||
}
|
||||
|
||||
print("\(i) is the smallest number that ends with 269696")
|
||||
6
Task/Babbage-problem/Dyalect/babbage-problem-2.dyalect
Normal file
6
Task/Babbage-problem/Dyalect/babbage-problem-2.dyalect
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
for i in 2..Integer.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