Skip to content

Commit ee670ed

Browse files
committed
Replaced cur % 3 with i % 3 in Nim version
1 parent 189e138 commit ee670ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nim/main.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ proc main() =
7070
var res = 0
7171

7272
for i in 1 ..< 1000000:
73-
let a = cur mod 3
73+
let a = i mod 3
7474
cur = (cur * 57 + 43) mod 10007
7575
case a:
7676
of 0:

0 commit comments

Comments
 (0)