Writing getPrimePairs.