Problem 2370. Fermat's last theorem - again

For a given integer n, express it as a sum of two squares if possible. Return empty matrix otherwise. Solution may not be unique and uniqueness will not be checked, so return one of the solutions. Example:

Output=[3 4]
Output=[5 4]

Solution Stats

47.67% Correct | 52.33% Incorrect
Last Solution submitted on Oct 24, 2023

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers37

Suggested Problems

More from this Author44

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!