algorithm_study
algorithm_study copied to clipboard
Modular square root
- https://www.geeksforgeeks.org/find-square-root-modulo-p-set-2-shanks-tonelli-algorithm/
- https://math.stackexchange.com/questions/633160/modular-arithmetic-find-the-square-root
https://en.wikipedia.org/wiki/Tonelli%E2%80%93Shanks_algorithm
https://github.com/zimpha/algorithmic-library/blob/master/cpp/mathematics/mod_sqrt.cc