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
Texas county officials in the US state of Oklahoma have released video of Sandra Bland having her mugshot taken at Waller County Jail.
A former member of the Bank of England's Monetary Policy Committee has told ITV News interest rates need to rise "sooner rather than later".
A Florida police officer has been suspended after footage showed him throwing peanuts at a homeless man 'like he was a circus animal'.