Skip to content

Commit 3e38166

Browse files
authored
Update modular_inverse_fermat_little_theorem.cpp
Add time complexity in comment
1 parent 6ab2635 commit 3e38166

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

math/modular_inverse_fermat_little_theorem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ std::int64_t binExpo(std::int64_t a, std::int64_t b, std::int64_t m) {
7878
return res;
7979
}
8080
/**
81-
* @brief Check if a given integer is a prime number.
81+
* @brief Check if an integer is a prime number in \f$O(\sqrt{m})\f$ time.
8282
* @param m An intger to check for primality
8383
* @return true if the number is prime
8484
* @return false if the number is not prime

0 commit comments

Comments
 (0)