# Apostle Luke's Password — Solution Setter method: factorial reduction and nine-base Miller–Rabin. Codex (GPT-6): safe modular multiplication, boundary and deterministic proofs, and the progression-sieve alternative. ## From factorials to primality Set $f=(p-1)!$ . Since $p!=pf$ , the radicand is $(f+1)^2/p^2$ , whose square root is exactly $(f+1)/p$ . The inner floor is an integer, so $$H(p)=\left\lfloor\frac{f+1}{p}\right\rfloor-\left\lfloor\frac f p\right\rfloor.$$ The two floors differ by one exactly when $f\equiv-1\pmod p$ . Direct substitution gives $H(1)=1$ ; $H(0)=0$ is a separate definition. For $p\ge2$ , Wilson's theorem says this congruence holds exactly for primes. For a prime modulus, pair each nonzero element with its inverse; only $1,-1$ pair with themselves, leaving product $-1$ . For composite $p$ , a proper prime divisor $q