PM vows to defeat external elements