If x and y are both positive integers, what is their greatest common factor?
(1) x and y are prime numbers.
(2) x and y share only one common divisor.
(1) x and y are prime numbers.
(2) x and y share only one common divisor.