Primality testing and Jacobi sums | Synapse