since a and b are both primes, a can only be equal to 1*a and b equal to 1*b (they have no other integer factors other than 1 and themselves respectively).
therefore, the gcd of a and b is 1; the lcm of a and b is ab(product of a and b)
hope i helped :)