Jump to content

Product of divisors: Difference between revisions

(→‎{{header|jq}}: Example requiring gojq)
Line 774:
'''Example'''
<lang jq>"n product of divisors",
(range(1001; 11051) | "\(.lpad(3)) \(product_of_divisors|lpad(15))")</lang>
{{out}}
<pre>
n product of divisors
n product of divisors
100 1000000000
101 1 101 1
102 2 108243216 2
103 3 103 3
104 4 116985856 8
105 5 121550625 5
106 6 11236 36
107 7 107 7
8 64
108 1586874322944
109 9 109 27
10 100
11 11
12 1728
13 13
14 196
15 225
16 1024
17 17
18 5832
19 19
20 8000
21 441
22 484
23 23
24 331776
25 125
26 676
27 729
28 21952
29 29
30 810000
31 31
32 32768
33 1089
34 1156
35 1225
36 10077696
37 37
38 1444
39 1521
40 2560000
41 41
42 3111696
43 43
44 85184
45 91125
46 2116
47 47
48 254803968
49 343
50 125000
</pre>
'''Example requiring gojq'''
2,478

edits

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