网络安全-07:数论入门摘要.ppt

网络安全-07:数论入门摘要

* * * * * * Traditionally sieve for primes using trial division of all possible prime factors of some number, but this only works for small numbers. Alternatively can use repeated statistical primality tests based on properties of primes, and then for certainty, use a slower deterministic primality test, such as the AKS test. * * If Miller-Rabin returns “composite” the number is definitely not prime, otherwise it is either a prime or a pseudo-prime. The chance it detects a pseudo-prime is 1/4 So if apply test repeatedly with different values of a, the probabiility that the number is a pseud

文档评论(0)

1亿VIP精品文档

相关文档