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
Essex Police removed 220 guns from people with firearms licenses who were suspected of domestic violence in a bid to prevent murders.
A grieving mother says her faith in humanity is restored after a stolen laptop containing photos of her dying daughter was returned to her.
Rain will ease across central Scotland this morning but it will continue throughout the day across much of Scotland and the north.