Humble numbers: Difference between revisions

(→‎{{header|jq}}: Fast and economical)
Line 3,103:
6: 579</pre>
===Fast and economical===
(At least up to jq's numerical precision...)
 
Having already shown one way to display the first few humble numbers, this subsection will focus on the more difficult problem.
<lang jq>
Line 3,128 ⟶ 3,130:
(distribution(humbles($digits)) | range(0;length) as $i | " \($i+1): \(.[$i])") ;
 
task(1114)</lang>
{{out}}
<pre>Distribution of the number of decimal digits up to 1114 digits:
 
<pre>
Distribution of the number of decimal digits up to 11 digits:
1: 9
2: 36
Line 3,143:
9: 1767
10: 2381
11: 3113</pre>
12: 3984
13: 5002
14: 6187</pre>
 
=={{header|Julia}}==
2,442

edits