- 注册时间
- 2010-1-17
- 最后登录
- 1970-1-1
- 威望
- 星
- 金币
- 枚
- 贡献
- 分
- 经验
- 点
- 鲜花
- 朵
- 魅力
- 点
- 上传
- 次
- 下载
- 次
- 积分
- 84
- 在线时间
- 小时
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?欢迎注册
×
在The Agrawal -Kayal -Saxena Test的素数测试中
Input: Integer n > 1
if (n has the form ab with b > 1) then output COMPOSITE;
r := 2;
while (r < n) {
if (gcd(n,r) is not 1) then output COMPOSITE;
if (r is prime greater than 2) then {
let q be the largest factor of r-1;
if (q > 4sqrt(r)log n) and (n^[(r-1)/q] is not 1 (mod r)) then
break;
}
r := r + 1;
}
for a := 1 to 2sqrt(r)log n {
if ( (x-a)^n is not (x^n-a) (mod x^r-1,n) ) then output COMPOSITE;
}
output PRIME;
这句:
if ( (x-a)^n is not (x^n-a) (mod x^r-1,n) ) then output COMPOSITE;
应该如何理解? |
|