PM says violent extremism primary threat of 21st century