Initial release
This commit is contained in:
14
Logarithme discret.py
Normal file
14
Logarithme discret.py
Normal file
@@ -0,0 +1,14 @@
|
||||
input_b = (50, 36, 153, 128, 71, 23, 75, 55, 208, 121)
|
||||
n = 223
|
||||
|
||||
solution = list()
|
||||
|
||||
for b in input_b:
|
||||
x = 1
|
||||
while True:
|
||||
if (3**x)%n == b:
|
||||
solution.append(x)
|
||||
break
|
||||
x += 1
|
||||
|
||||
print(solution)
|
||||
Reference in New Issue
Block a user