Madhav Kumar Nepal resigned as prime minister of Nepal on Wednesday after just over a year in office, in response to pressure from opposition Maoists and detractors within his own party.