Uploaded November 2014 | Updated December 2026, 3 hours ago
This is a really useful function that I thought needed to be explained.
When dealing with security methods, like RSA or the Diffie-Hellman, or finding primes using the Fermat's Little Theorem, you quickly find that you have to compute massive numbers that don't seem possible. But they can be computed insanely fast and exactly using recursion.
This is a really useful function that I thought needed to be explained.
When dealing with security methods, like RSA or the Diffie-Hellman, or finding primes using the Fermat's Little Theorem, you quickly find that you have to compute massive numbers that don't seem possible. But they can be computed insanely fast and exactly using recursion.










