1. Verifying a prime with running products
Mathematics StudentBackground
A student is analyzing how modular inverses pair up during the factorial accumulation modulo a prime.
Problem
Check if 13 is prime using Wilson's theorem and examine the step-by-step product trace.
How to use
Enter 13 into the Number n field and select 'Also show running products (n ≤ 200)' in Output detail.
n = 13, detail = traceOutcome
Shows 12! mod 13 = 12, confirms Wilson's condition holds, lists all 12 intermediate products, and confirms primality via Miller–Rabin.