Numbers with prime digits whose sum is 13: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: thought) |
|||
Line 193: | Line 193: | ||
printf(1,"Prime_digit-only numbers summing to %d: %s\n",{p,join(s)}) |
printf(1,"Prime_digit-only numbers summing to %d: %s\n",{p,join(s)}) |
||
end for</lang> |
end for</lang> |
||
Originally I |
Originally I thought 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}} |
{{out}} |
||
<pre> |
<pre> |