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 21:54, 24 November 2021
, 2 years ago→{{header|Julia}}
m (→{{header|Phix}}: maybe 2*n+3) |
|||
Line 47:
using Combinatorics
possibles = [n for n in 1:500 if all(combo -> sum(combo) != n, combinations(squares))]
|