When talking about a specific prime minister, prime minister is capitalized.
The Prime Minister gave a speech today.
When calling a prime minister by their title and name together, British usage is the Prime Minister, Rishi Sunak or Rishi Sunak, the Prime Minister. North American usage is Prime Minister Rishi Sunak.