David Cameron said Scotland said Scotland gets "the best of both worlds" when it comes to the UK's armed forces.
Speaking at an Armed Forces Day celebration in Stirling, he said: "We can consider what Scotland brings to the UK armed forces and what being part of a bigger entity brings for Scotland as well.
He added: "My message is always that Scotland gets the best of both worlds, and that's what we want to see.
"More power through the Scottish Parliament to make its own decisions, but also the benefit of being part of a larger United Kingdom with - one advantage - these armed forces which can help protect our values and keep us safe.
More top news
Crowds of people gathered in Sandringham on Sunday to catch a glimpse of Princess Charlotte as she arrived for her official christening.
The Chancellor has "found" the £12bn of benefit cuts promised in the Tory election manifesto - here's what we know about the savings so far.
The pair, including a man in his 50s, were struck around midday on the Pen y Fan mountain range in Powys, mid-Wales.