| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:4b4c1dab-4fb2-97f2-004e-d54f57abe4d4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 816E:9CA74:1A029CB:2370954:6AFB9139 |
| html-safe-nonce | a64df5f48328739158b12c91ce61dd4019f0166fbf60b79ec6d2f3fba13f05f0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTZFOjlDQTc0OjFBMDI5Q0I6MjM3MDk1NDo2QUZCOTEzOSIsInZpc2l0b3JfaWQiOiIxMTYzMjIyMTMwNzYyNjgyNjgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 075584c145d5fe636d5a50280f67cc6cb2f38c78f42e72e80cb360b1d8bc5310 |
| hovercard-subject-tag | pull_request:2549668632 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/TheAlgorithms/Python/12771/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/132abd0ba83ec625a870366713faa0b9dd7f40e0f6aa6c05ba98965cd5b7d281/TheAlgorithms/Python/pull/12771 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/132abd0ba83ec625a870366713faa0b9dd7f40e0f6aa6c05ba98965cd5b7d281/TheAlgorithms/Python/pull/12771 |
| og:image:alt | Describe your change:
Pre-compute the squares and use the look up in the set to check squares property.
Add an algorithm?
Fix a bug or typo in an existing algorithm?
Add or change doctests? -- ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mindaugl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4f01efe06174a5ba6342fd58e42d02295e0675bedbb465d6bef2dbaec8e46556 |
| turbo-cache-control | no-cache |
| go-import | github.com/TheAlgorithms/Python git https://github.com/TheAlgorithms/Python.git |
| octolytics-dimension-user_id | 20487725 |
| octolytics-dimension-user_login | TheAlgorithms |
| octolytics-dimension-repository_id | 63476337 |
| octolytics-dimension-repository_nwo | TheAlgorithms/Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 63476337 |
| octolytics-dimension-repository_network_root_nwo | TheAlgorithms/Python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a52db8866b6543b4e83730cd6a6b1360f1a9e4dc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/TheAlgorithms/Python/pull/12771#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F12771 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F12771 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=TheAlgorithms%2FPython |
| Reload | https://github.com/TheAlgorithms/Python/pull/12771 |
| Reload | https://github.com/TheAlgorithms/Python/pull/12771 |
| Reload | https://github.com/TheAlgorithms/Python/pull/12771 |
| TheAlgorithms | https://github.com/TheAlgorithms |
| Python | https://github.com/TheAlgorithms/Python |
| Code | https://github.com/TheAlgorithms/Python |
| Issues14 (14) | https://github.com/TheAlgorithms/Python/issues |
| Pull requests104 (104) | https://github.com/TheAlgorithms/Python/pulls |
| Discussions | https://github.com/TheAlgorithms/Python/discussions |
| Actions | https://github.com/TheAlgorithms/Python/actions |
| Projects | https://github.com/TheAlgorithms/Python/projects |
| Wiki | https://github.com/TheAlgorithms/Python/wiki |
| Security and quality | https://github.com/TheAlgorithms/Python/security |
| Insights | https://github.com/TheAlgorithms/Python/pulse |
| https://github.com/TheAlgorithms/Python |
| MaximSmolskiy | https://github.com/MaximSmolskiy |
| TheAlgorithms:master | https://github.com/TheAlgorithms/Python/tree/master |
| mindaugl:euler_9 | https://github.com/mindaugl/TheAlgorithms_Python/tree/euler_9 |
| Conversation | https://github.com/TheAlgorithms/Python/pull/12771 |
| Commits7 (7) | https://github.com/TheAlgorithms/Python/pull/12771/commits |
| Checks | https://github.com/TheAlgorithms/Python/pull/12771/checks |
| Files changed | https://github.com/TheAlgorithms/Python/pull/12771/files |
| Add new solution for the euler project problem 9 | https://github.com/TheAlgorithms/Python/pull/12771#top |
| MaximSmolskiy | https://github.com/MaximSmolskiy |
| TheAlgorithms:master | https://github.com/TheAlgorithms/Python/tree/master |
| mindaugl:euler_9 | https://github.com/mindaugl/TheAlgorithms_Python/tree/euler_9 |
|
| https://github.com/mindaugl |
| mindaugl | https://github.com/mindaugl |
| May 28, 2025 | https://github.com/TheAlgorithms/Python/pull/12771#issue-3097502955 |
| CONTRIBUTING.md | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| type hints | https://docs.python.org/3/library/typing.html |
| doctests | https://docs.python.org/3/library/doctest.html |
| closing keyword | https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/12771 |
| mindaugl | https://github.com/mindaugl |
| May 28, 2025 16:56 | https://github.com/TheAlgorithms/Python/pull/12771#commits-pushed-59a0765 |
|
| https://github.com/mindaugl |
| Add new solution for the euler project problem 9 - precompute the squ… | https://github.com/TheAlgorithms/Python/pull/12771/commits/59a07658c9cc9181ae4478dd9a11367cdcc9eaed |
| 59a0765 | https://github.com/TheAlgorithms/Python/pull/12771/commits/59a07658c9cc9181ae4478dd9a11367cdcc9eaed |
|
| https://github.com/MaximSmolskiy |
| Update sol4.py | https://github.com/TheAlgorithms/Python/pull/12771/commits/1ca8388c454fe890d9b5f304580568d69bc35fc8 |
| 1ca8388 | https://github.com/TheAlgorithms/Python/pull/12771/commits/1ca8388c454fe890d9b5f304580568d69bc35fc8 |
|
| https://github.com/MaximSmolskiy |
| updating DIRECTORY.md | https://github.com/TheAlgorithms/Python/pull/12771/commits/f60dd0294588fcc59fb920b68ca6ec612990bb6e |
| f60dd02 | https://github.com/TheAlgorithms/Python/pull/12771/commits/f60dd0294588fcc59fb920b68ca6ec612990bb6e |
|
| https://github.com/MaximSmolskiy |
| Merge branch 'master' into euler_9 | https://github.com/TheAlgorithms/Python/pull/12771/commits/eea44fc8f427f3628d089c5c4837c7e8f94a404d |
| eea44fc | https://github.com/TheAlgorithms/Python/pull/12771/commits/eea44fc8f427f3628d089c5c4837c7e8f94a404d |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
tests are failing
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22tests%20are%20failing%22 |
| Aug 26, 2025 | https://github.com/TheAlgorithms/Python/pull/12771#event-19352756408 |
|
| https://github.com/MaximSmolskiy |
| Update sol4.py | https://github.com/TheAlgorithms/Python/pull/12771/commits/6305d596e1fed6bad0ebdd5b2e53b4f739d8591c |
| 6305d59 | https://github.com/TheAlgorithms/Python/pull/12771/commits/6305d596e1fed6bad0ebdd5b2e53b4f739d8591c |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
require descriptive names
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20descriptive%20names%22 |
| Aug 26, 2025 | https://github.com/TheAlgorithms/Python/pull/12771#event-19352981029 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
Aug 26, 2025
| https://github.com/TheAlgorithms/Python/pull/12771#pullrequestreview-3156760500 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/12771/files/6305d596e1fed6bad0ebdd5b2e53b4f739d8591c |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
| https://github.com/TheAlgorithms/Python/pull/12771#pullrequestreview-3156760500 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Contributing guidelines | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| Project Euler solution guidelines | https://github.com/TheAlgorithms/Python/blob/master/project_euler/README.md |
| Formatted string literals (f-strings) | https://docs.python.org/3/tutorial/inputoutput.html#tut-f-strings |
| Type hints | https://docs.python.org/3/library/typing.html |
| doctest | https://docs.python.org/3/library/doctest.html |
| unittest | https://docs.python.org/3/library/unittest.html |
| pytest | https://docs.pytest.org/en/stable/ |
| algorithms-keeper | https://github.com/dhruvmanila/algorithms-keeper |
| please open an issue about it. | https://github.com/dhruvmanila/algorithms-keeper/issues |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/12771 |
| project_euler/problem_009/sol4.py | https://github.com/TheAlgorithms/Python/pull/12771/files/6305d596e1fed6bad0ebdd5b2e53b4f739d8591c#diff-a99d57de3234937911fba2597ddc0514479e6f63802c3f2bad8705ec8f53d554 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/12771 |
| project_euler/problem_009/sol4.py | https://github.com/TheAlgorithms/Python/pull/12771/files/6305d596e1fed6bad0ebdd5b2e53b4f739d8591c#diff-a99d57de3234937911fba2597ddc0514479e6f63802c3f2bad8705ec8f53d554 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/12771 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
awaiting reviews
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22awaiting%20reviews%22 |
| Aug 26, 2025 | https://github.com/TheAlgorithms/Python/pull/12771#event-19352981760 |
|
| https://github.com/MaximSmolskiy |
| Update sol4.py | https://github.com/TheAlgorithms/Python/pull/12771/commits/4a82ebcf72f1395d858ae806eaf417855007a2a4 |
| 4a82ebc | https://github.com/TheAlgorithms/Python/pull/12771/commits/4a82ebcf72f1395d858ae806eaf417855007a2a4 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
Aug 26, 2025
| https://github.com/TheAlgorithms/Python/pull/12771#pullrequestreview-3156780199 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/12771/files/4a82ebcf72f1395d858ae806eaf417855007a2a4 |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
| https://github.com/TheAlgorithms/Python/pull/12771#pullrequestreview-3156780199 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Contributing guidelines | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| Project Euler solution guidelines | https://github.com/TheAlgorithms/Python/blob/master/project_euler/README.md |
| Formatted string literals (f-strings) | https://docs.python.org/3/tutorial/inputoutput.html#tut-f-strings |
| Type hints | https://docs.python.org/3/library/typing.html |
| doctest | https://docs.python.org/3/library/doctest.html |
| unittest | https://docs.python.org/3/library/unittest.html |
| pytest | https://docs.pytest.org/en/stable/ |
| algorithms-keeper | https://github.com/dhruvmanila/algorithms-keeper |
| please open an issue about it. | https://github.com/dhruvmanila/algorithms-keeper/issues |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/12771 |
| project_euler/problem_009/sol4.py | https://github.com/TheAlgorithms/Python/pull/12771/files/4a82ebcf72f1395d858ae806eaf417855007a2a4#diff-a99d57de3234937911fba2597ddc0514479e6f63802c3f2bad8705ec8f53d554 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/12771 |
| project_euler/problem_009/sol4.py | https://github.com/TheAlgorithms/Python/pull/12771/files/4a82ebcf72f1395d858ae806eaf417855007a2a4#diff-a99d57de3234937911fba2597ddc0514479e6f63802c3f2bad8705ec8f53d554 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/12771 |
|
| https://github.com/MaximSmolskiy |
| Update sol4.py | https://github.com/TheAlgorithms/Python/pull/12771/commits/a8717d1ff5b7ca26c626cb0f2ede71105ff49211 |
| a8717d1 | https://github.com/TheAlgorithms/Python/pull/12771/commits/a8717d1ff5b7ca26c626cb0f2ede71105ff49211 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
Aug 26, 2025
| https://github.com/TheAlgorithms/Python/pull/12771#pullrequestreview-3156784035 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/12771/files/a8717d1ff5b7ca26c626cb0f2ede71105ff49211 |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
| https://github.com/TheAlgorithms/Python/pull/12771#pullrequestreview-3156784035 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Contributing guidelines | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| Project Euler solution guidelines | https://github.com/TheAlgorithms/Python/blob/master/project_euler/README.md |
| Formatted string literals (f-strings) | https://docs.python.org/3/tutorial/inputoutput.html#tut-f-strings |
| Type hints | https://docs.python.org/3/library/typing.html |
| doctest | https://docs.python.org/3/library/doctest.html |
| unittest | https://docs.python.org/3/library/unittest.html |
| pytest | https://docs.pytest.org/en/stable/ |
| algorithms-keeper | https://github.com/dhruvmanila/algorithms-keeper |
| please open an issue about it. | https://github.com/dhruvmanila/algorithms-keeper/issues |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/12771 |
| project_euler/problem_009/sol4.py | https://github.com/TheAlgorithms/Python/pull/12771/files/a8717d1ff5b7ca26c626cb0f2ede71105ff49211#diff-a99d57de3234937911fba2597ddc0514479e6f63802c3f2bad8705ec8f53d554 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/12771 |
| project_euler/problem_009/sol4.py | https://github.com/TheAlgorithms/Python/pull/12771/files/a8717d1ff5b7ca26c626cb0f2ede71105ff49211#diff-a99d57de3234937911fba2597ddc0514479e6f63802c3f2bad8705ec8f53d554 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/12771 |
| https://github.com/MaximSmolskiy |
| MaximSmolskiy | https://github.com/MaximSmolskiy |
|
Aug 26, 2025
| https://github.com/TheAlgorithms/Python/pull/12771#pullrequestreview-3156785674 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/12771/files/a8717d1ff5b7ca26c626cb0f2ede71105ff49211 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
awaiting reviews
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22awaiting%20reviews%22 |
|
tests are failing
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22tests%20are%20failing%22 |
| Aug 26, 2025 | https://github.com/TheAlgorithms/Python/pull/12771#event-19353086516 |
| https://github.com/MaximSmolskiy |
| MaximSmolskiy | https://github.com/MaximSmolskiy |
| 55db5a1 | https://github.com/TheAlgorithms/Python/commit/55db5a1b8d463a514522dd759053d30357538b62 |
| Aug 26, 2025 | https://github.com/TheAlgorithms/Python/pull/12771#event-19353134472 |
| https://github.co/hiddenchars |
| https://github.com/TheAlgorithms/Python/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F12771 |
|
| https://github.com/MaximSmolskiy |
|
MaximSmolskiy
| https://github.com/MaximSmolskiy |
|
| https://github.com/TheAlgorithms/Python/pull/12771/files/a8717d1ff5b7ca26c626cb0f2ede71105ff49211 |
|
| https://github.com/apps/algorithms-keeper |
|
algorithms-keeper[bot]
| https://github.com/apps/algorithms-keeper |
|
| https://github.com/TheAlgorithms/Python/pull/12771/files/a8717d1ff5b7ca26c626cb0f2ede71105ff49211 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/12771 |
|
require descriptive names
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20descriptive%20names%22 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/12771 |
|
| https://github.com/mindaugl |
|
| https://github.com/MaximSmolskiy |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |