freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-125-palindromic-sum...

22 lines
641 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f3e91000cf542c50fefc
title: 问题125回文总和
challengeType: 5
videoUrl: ''
---
# --description--
回文数595很有意思因为它可以写成连续正方形的总和62 + 72 + 82 + 92 + 102 + 112 + 122.正好有11个以下的回文可以写成连续的平方和并且这些回文的总和是4164.注意没有包括1 = 02 + 12因为该问题涉及正整数的平方。找到小于108的所有数字的总和这些数字都是回文并且可以写为连续正方形的总和。
# --hints--
`euler125()`应该返回2906969179。
```js
assert.strictEqual(euler125(), 2906969179);
```
# --solutions--