Weeks shy of his 95th birthday, former President Jimmy Carter said Tuesday he doesn't believe he could have managed the most powerful office in the world at 80 years old.

Carter, who earlier this year became the longest-lived chief executive in American history, didn't tie his comments to any of his fellow Democrats running for president, but two leading 2020 candidates, Joe Biden and Bernie Sanders, would turn 80 during their terms if elected.

Biden is 76. Sanders is 78.

'I hope there's an age limit,' Carter said with a laugh as he answered audience questions during his annual report at the Carter Center in Atlanta.

'If I were just 80 years old, if I was 15 years younger, I don't believe I could undertake the duties I experienced when I was president.'

Former President Jimmy Carter said he doesn't believe he could have managed the most powerful office in the world as an 80 year old

Former President Jimmy Carter and Rosalynn Carter spoke about the future of The Carter Center and their global work during a town hall on Tuesday in Atlanta

Carter's observation came in response to a jovial inquiry about whether he had considered running in 2020 since he's still constitutionally allowed another term.

The 39th president left office in 1981 at the age of 56 after losing his reelection bid to Ronald Reagan, who served two terms and left office as the oldest sitting president in history, at 77.

Either Biden or Sanders would be older upon their inauguration than Reagan was on his final day in the Oval Office.

At 73, President Donald Trump is a record setter, as well. He eclipsed Reagan's mark as the oldest newly elected president in history and would become the oldest president to be reelected.

Carter didn't tie his answer to any of his fellow Democrats running for president

Two leading 2020 candidates, Joe Biden and Bernie Sanders, would turn 80 during their terms if elected. Biden, right, is 76. Sanders, left, is 78

President Jimmy Carter is pictured as a candidate in 1976 under his slogan 'Let Us Pull Together' during his national campaign

Age has been a flashpoint for some critics of Trump, Sanders and Biden.

Carter, who turns 95 on October 1, said the Oval Office requires a president 'to be very flexible with your mind,' particularly on foreign affairs. He was speaking on the 41st anniversary of the Camp David Accords, a peace agreement he negotiated with Egyptian President Anwar Sadat and Israeli Prime Minister Menachem Begin.

'You have to be able to go from one subject to another and concentrate on each one adequately and then put them together in a comprehensive way, like I did between Begin and Sadat with the peace agreement,' Carter said.

'The things I faced in foreign affairs, I don't think I could undertake them at 80 years old,' he continued, before adding with a smile: 'At 95, it's out of the question. I'm having a hard time walking.'

Jimmy Carter on his peanut farm in Plains, Georgia, 1976

Then-Georgia Governor Jimmy Carter formerly announced his intention to seek the Presidency in 1975 at the age of 51. The 39th US president was 56 when he left office in 1981

President and Mrs. Carter are all smiles as they step out on the dance floor at the Mayflower Hotel, the site of seven Inaugural Balls in January 1977

Carter said he remains undecided in the 2020 primary. 'I'm going to keep an open mind,' he said, explaining that he wants to vote for a candidate who pledges to make the U.S. the world's leading champion for peace, human rights and equality.

'One of the major factors I will have in my mind is who can beat Trump,' he added, noting that he'll vote for the Democratic nominee in the general election regardless.

Still, his assessments on age could leave Carter with few easy choices in the primary.

Carter repeated his previous disclosure that he voted for Sanders over Hillary Clinton in 2016, siding with the democratic socialist over the party establishment favorite. But Carter has since warned Democrats not to go too far left, lest they risk alienating independents and moderate Republicans who can help the party defeat Trump.

He has specifically cited proposals like a single-payer health insurance system as potential deal-breakers for some voters inclined to vote against Trump.

Sanders and another leading progressive candidate, Massachusetts Sen. Elizabeth Warren, back single-payer health insurance run by the federal government. Warren is 70 years old.

Democrat Jimmy Carter is sworn in by chief justice Earl Burger as the 39th president of the United States while first lady Rosalynn looks on, in Washington DC, January 20, 1977

President Jimmy Carter, right, offers a toast to Chinese Vice Premier Deng Xiaoping, left, at a state dinner in the White House in January 1979

Biden, meanwhile, is leading most national and early state primary polls in part because of his strength among more moderate Democrats. Other moderates in the field trail far behind Biden, Sanders and Warren.

When Carter ran and won in 1976, he was the outsider toppling establishment favorites. But the former Georgia governor also represented the more moderate wing of a party that had been dominated by Northeastern liberals.

Since his defeat, however, Republicans have used Carter as a liberal caricature. And Carter himself, through his work at the Carter Center, has embraced the role of an outspoken human rights advocate willing to criticize the world's establishment institutions and accepted world order.

Former United States President Jimmy Carter is shown with first lady Rosalynn Carter and daughter Amy, in this July 1977 file photograph

He's long blasted Israel's treatment of Palestinians, even as both major U.S. parties more carefully navigated the U.S. alliance with Tel Aviv. As Israel tallies votes in its Tuesday elections, Carter lamented that hard-line Prime Minister Benjamin Netanyahu's reelection could 'end the peace process' altogether.

Speaking about his post-presidency legacy, Carter said he wants the Carter Center, which has focused since 1982 on public health and election monitoring, to be more willing to criticize the U.S. government, advocate for policies to combat the climate crisis and explicitly take sides against war.

'The Carter Center has been basically mute on the subject of global warming,' Carter said, putting blame on himself.

He also warned Americans against the consequences of perpetual military conflict. He noted that China, the major economic and geopolitical competitor to the U.S., has spent four decades at peace since Carter normalized relations with Beijing. In that time, China has spent trillions of dollars on infrastructure and education, Carter said, while the U.S. has spent corresponding amounts on military engagement.

'That just shows you the difference between peace and war,' Carter said, later adding, 'I just want to keep the world at peace.'

Jimmy Carter waves before the crowd on the floor of the Democratic Convention in 1980