sumsqint

Finds all distinct ways of writing a number as the sum of squares, i.e. solve x^2+y^2=n for 0<=x<=y.

Download
Download

You are now following this Submission

Cite As

Ben Petschel (2026). sumsqint (https://ch.mathworks.com/matlabcentral/fileexchange/24798-sumsqint), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Variable Precision Integer Arithmetic

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0

added support for factored inputs; fixed a bug in the handling of vpi numbers with prime factors larger than 100; added option to remember newly found gaussian prime factors.

Download
1.0.0

Download