Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. problem1
  2. "DiscreteLogarithm problem1"
  3. | p g h |
  4.     p := 13407807929942597099574024998205846127479365820592393377723561443721764030073546976801874298166903427690031858186486050853753882811946569946433649006084171.
  5.     g := 11717829880366207009516117596335367088558084999998952205599979459063929499736583746670572176471460312928594829675428279466566527115212748467589894601965568.
  6.     h := 3239475104050450443565264378728065788649097520952449527834792452971981976143292558073856937958553180532878928001494706097394108577585732452307673444020333.
  7.  
  8.     ^self new computeLog: g base: h modulo: p
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement