Advertisement
clairec

Untitled

Sep 22nd, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. -- Implement (efficient) modular exponentiation
  2. -- usage: expmod a n m = b
  3. -- assumes: n >= 0, m >= 2
  4. -- assures: a^n ≡ b (mod m), 0 <= b < m
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement