关于这个算法
详细讲解写在另一篇博客上
链接
米勒-拉宾(MillerRabbin)素性测试算法
地址:
https://blog.csdn.net/holly_Z_P_F/article/details/85197424