YAPC::EU 2018 Glasgow Update!
This commit is contained in:
parent
22f33d4004
commit
4e2d22a71d
1170 changed files with 15042 additions and 3047 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import sequtils
|
||||
|
||||
iterator castOut(base = 10, start = 1, ending = 999_999) =
|
||||
iterator castOut(base = 10, start = 1, ending = 999_999): int =
|
||||
var ran: seq[int] = @[]
|
||||
for y in 0 .. <base-1:
|
||||
for y in 0 ..< base-1:
|
||||
if y mod (base - 1) == (y*y) mod (base - 1):
|
||||
ran.add(y)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
# Project : Casting out nines
|
||||
# Date : 2018/03/24
|
||||
# Author : Gal Zsolt [~ CalmoSoft ~]
|
||||
# Email : <calmosoft@gmail.com>
|
||||
|
||||
co9(1, 10, 99, [1,9,45,55,99])
|
||||
co9(1, 10, 1000, [1,9,45,55,99,297,703,999])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue