[ create a new paste ] login | about

Link: http://codepad.org/Hz4Hekmw    [ raw code | output | fork ]

Lua, pasted on Mar 11:
1
2
3
4
5
local x=1
for i=1,100000 do
        x=(x*7) % 1e6
        if x==823543 then print(i) end
end


Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
7
5007
10007
15007
20007
25007
30007
35007
40007
45007
50007
55007
60007
65007
70007
75007
80007
85007
90007
95007


Create a new paste based on this one


Comments: