Add method to test for coprimes.