HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by Perepiska | Hacker News Reader
Parent
Full thread
Perepiska
·
pow(x,e,mod) was the reason I switched from Perl to Python :)
View on HN
archgoon
·
Even better, they implement negative exponents as well, so you don't have to find a library or cobble together an extended gcd function, since you get in inverses for free.
Reply on news.ycombinator.com