Making the Fermat primality test deterministic | Hacker News Reader