Numbers with prime digits whose sum is 13: Difference between revisions

m
Line 193:
printf(1,"Prime_digit-only numbers summing to %d: %s\n",{p,join(s)})
end for</lang>
Originally I thoughthought I wouldn't need to sort the output of unlucky(), but it generates all numbers ending in 7 first, and alas (eg) 355 < 2227, not that it hurts any.
{{out}}
<pre>
7,820

edits