Skip to main content
Reviewed for accuracy by Manoj Kumar, Mathematics Educator

Miller Rabin Primality Test Calculator

Calculator

Adjust values & calculate

Enter your values below. Every result is computed in your browser โ€” no data is sent to any server.

Formula: Test: a^d mod n and a^(2^i * d) mod n for i = 0 to r-1

Your Result

Worked example โ€” Probably Prime | Confidence: 99.9999% | 10 iterations

Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy