(50G) Discrete Log Modulo a Prime
|
03-12-2017, 07:59 AM
(This post was last modified: 06-15-2017 01:41 PM by Gene.)
Post: #1
|
|||
|
|||
(50G) Discrete Log Modulo a Prime
For input P a prime, B a primitive root of P & N an integer the programme finds the discrete logarithm of N for base B modulo P.
For info on discrete logarithms please see https://en.wikipedia.org/wiki/Discrete_logarithm For a programme to test primitiveness see http://www.hpmuseum.org/forum/thread-7924.html eg For input 10007 666 1953 the programme returns 9868 meaning 666 ^ 9868 = 1953 mod 10007. Code:
|
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(50G) Discrete Log Modulo a Prime - Gerald H - 03-12-2017 07:59 AM
|
User(s) browsing this thread: 1 Guest(s)