Brooks’s work is purely hypothetical and concerns patterns in prime numbers, but as he goes deeper, he finds himself within reach of a key that can unlock every digital password in the world.