The British Prime Minister addressed hundreds of British sailors in Halifax on Thursday. (CBC)

British Prime Minister David Cameron made a quick stop in Halifax on Thursday to meet with British sailors before travelling to Toronto for the G8/G20 meetings.

A spokesman for 10 Downing Street said Cameron addressed about 500 sailors and thanked them for their work in an international fleet review that the Queen is attending next week to mark the centennial of the Canadian navy.

No public events were planned.

Ark Royal arrived in Halifax on Wednesday to take part in the anniversary celebrations.

More than a dozen foreign warships are expected. The USS Wasp will be the largest.

The Queen will review the fleet on Tuesday, escorted by Prime Minister Stephen Harper.

With files from The Canadian Press