Numbers which are not the sum of distinct squares: Difference between revisions

m
m (→‎{{header|Phix}}: maybe 2*n+3)
Line 47:
using Combinatorics
 
@show squares = [n * n for n in 1:20]
 
possibles = [n for n in 1:500 if all(combo -> sum(combo) != n, combinations(squares))]
4,102

edits