一个 算法,用于查找给定 和素数 的 的最小非负值。
更多尝试
Weisstein, Eric W. “香克斯算法。” 来自 MathWorld——Wolfram 网络资源。 https://mathworld.net.cn/ShanksAlgorithm.html