Which country do you think you live in?  Our Prime Minister will remain Prime Minister as long as his party maintains the confidence of the House, or until an election, or (as is extremely unlikely, but happened to Thatcher) his party decides to replace him.