Skip to content

Fermat's last theorem#13

Draft
alfredoedye wants to merge 2 commits intomasterfrom
cursor/AP-20-fermat-s-last-theorem-ef9e
Draft

Fermat's last theorem#13
alfredoedye wants to merge 2 commits intomasterfrom
cursor/AP-20-fermat-s-last-theorem-ef9e

Conversation

@alfredoedye
Copy link
Contributor

Adds an educational Fermat's Last Theorem verifier to address a request to "solve" the theorem, providing a computational demonstration and explanation instead of a mathematical proof.

The original Linear issue AP-20 asked to "solve" Fermat's Last Theorem. Since this is a complex mathematical proof (not solvable by code), this PR provides an educational resource that explains the theorem, its history, and includes a Python program to computationally verify its properties for small integer values (e.g., finding Pythagorean triples for n=2 and showing no solutions for n>2 within a given range). This approach offers a practical and educational response to the request.


Linear Issue: AP-20

Open in Cursor Open in Web

cursoragent and others added 2 commits January 28, 2026 15:20
- Created comprehensive README explaining Fermat's Last Theorem
- Implemented Python verifier that demonstrates the theorem computationally
- Verifies no solutions exist for n > 2 (consistent with the theorem)
- Finds all Pythagorean triples (n=2) as known cases
- Includes Docker support (Dockerfile + docker-compose.yml)
- Added comprehensive test suite
- All tests passing

Note: This is an educational demonstration, not a mathematical proof.
The actual proof by Andrew Wiles (1995) uses advanced mathematics
and spans hundreds of pages.

Co-authored-by: alfredo.edye <alfredo.edye@bitlogic.io>
Co-authored-by: alfredo.edye <alfredo.edye@bitlogic.io>
@cursor
Copy link

cursor bot commented Jan 28, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants