
Rabin-Miller Test
The Rabin-Miller Test is a method used to check if a number is prime, meaning it can only be divided evenly by 1 and itself. It works by choosing some random "witness" numbers and performing a sequence of calculations to see if they satisfy certain properties that only primes have. If they do, the number is likely prime; if not, it’s composite. The test is efficient and probabilistic, providing high confidence in primality with multiple rounds, making it essential for cryptography and secure communications.