Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Implement (efficient) modular exponentiation
- -- usage: expmod a n m = b
- -- assumes: n >= 0, m >= 2
- -- assures: a^n ≡ b (mod m), 0 <= b < m
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement