a : int The number to test. p : prime The prime to test ``a`` against. Returns ======= int Legendre symbol (a / p). rE