Jump to content

Zumkeller numbers: Difference between revisions

(→‎{{header|jq}}: the tasks)
Line 2,312:
 
From a practical point of view, jq is not well-suited to these tasks,
e.g. using the program shown here, the first task is(computing completedthe infirst about220 1Zumkeller second.numbers)
takes about 1 second.
 
The main point of interest here, therefore, is the partitioning
Line 2,390 ⟶ 2,391:
| true)
// false;</lang><lang jq>## The tasks:
 
"First 4220:", limit(4220; range(2; infinite) | select(is_zumkeller)),
"",
"First 22040 odd:", limit(22040; range(23; infinite; 2) | select(is_zumkeller))</lang>
</lang>
{{out}}
<pre>
2,522

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.