Skip to content

Add ModularExponentiation function to math directory#118

Closed
PauLopNun wants to merge 1 commit intoTheAlgorithms:masterfrom
PauLopNun:PauLopNun-patch-6
Closed

Add ModularExponentiation function to math directory#118
PauLopNun wants to merge 1 commit intoTheAlgorithms:masterfrom
PauLopNun:PauLopNun-patch-6

Conversation

@PauLopNun
Copy link

This PR adds a function to compute (base^exponent) % mod efficiently in Kotlin using iterative binary exponentiation. The function handles large exponents without overflow issues. Example usage is included in the main() function.

This PR adds a function to compute (base^exponent) % mod efficiently in Kotlin
using iterative binary exponentiation. The function handles large exponents
without overflow issues. Example usage is included in the main() function.
@PauLopNun PauLopNun closed this by deleting the head repository Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant