Jacobi sum primality test - Goh, Geok Yen (1997)