Numbers which are not the sum of distinct squares: Difference between revisions
Numbers which are not the sum of distinct squares (view source)
Revision as of 16:30, 15 October 2023
, 8 months ago→{{header|ALGOL 68}}: More notes
(→{{header|ALGOL 68}}: notes) |
(→{{header|ALGOL 68}}: More notes) |
||
Line 34:
=={{header|ALGOL 68}}==
Recursive brute force (tempting though it is to use 9 nested loops... :) ), using the proof that if 129-324 can be expressed as the sum of distinct squares, then all integers greater than 128 can be so expressed - see the link in the Wren sample.
<syntaxhighlight lang="algol68">
BEGIN # find the integers that can't be expressed as the sum of distinct squares #
|