ATHENS — With elections approaching on Sunday, Prime Minister Alexis Tsipras has tried his best to remind frustrated Greeks how bad things were and how much better they had become during his four years in power.

Greece had averted bankruptcy and last year finally exited its bailout of more than 300 billion euros, or $340 billion. Unemployment was down. Growth was up. Investors were returning. Greece now has a solid alliance with the United States, business with China and more sway in the European Union.

“We want the Greek people to vote not with their anger but with their minds,” Mr. Tsipras said at a campaign event at a fruit and vegetable market in Athens. “We remember what we went through.”

[Greek election results: Prime minister Alexis Tsipras concedes defeat as center right surges.]

Despite all that, many Greeks are hurting and angry after a decade of austerity, and they blame him, even if his supporters say that he led them much of the way through the economic wilderness. Polls suggest a stinging defeat for Mr. Tsipras in the snap elections he called after his drubbing in May’s elections for the European Parliament.