100种算法【Python版】第33篇——Tonelli-Shanks算法

1 模素数下的二次剩余问题

在数论中,给定一个素数 p p p 和一个整数 n n n