Numbers with prime digits whose sum is 13: Difference between revisions
Numbers with prime digits whose sum is 13 (view source)
Revision as of 17:18, 7 January 2024
, 4 months ago→{{header|Wren}}: Minor tidy
m (→{{header|RPL}}: small loop counter tweak) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 2,407:
{{libheader|Wren-sort}}
As the only digits which are prime are [2, 3, 5, 7], it is clear that a number must have between 3 and 6 digits for them to sum to 13.
<syntaxhighlight lang="
import "./seq" for Lst
import "./sort" for Sort
var combrep // recursive
|