Product of divisors: Difference between revisions
Content added Content deleted
(→{{header|jq}}: Example requiring gojq) |
(→{{header|jq}}: 1 .. 50) |
||
Line 774: | Line 774: | ||
'''Example''' |
'''Example''' |
||
<lang jq>"n product of divisors", |
<lang jq>"n product of divisors", |
||
(range( |
(range(1; 51) | "\(lpad(3)) \(product_of_divisors|lpad(15))")</lang> |
||
{{out}} |
{{out}} |
||
<pre> |
<pre> |
||
n product of divisors |
n product of divisors |
||
n product of divisors |
|||
100 1000000000 |
|||
1 1 |
|||
2 2 |
|||
3 3 |
|||
4 8 |
|||
5 5 |
|||
6 36 |
|||
7 7 |
|||
8 64 |
|||
108 1586874322944 |
|||
9 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> |
</pre> |
||
'''Example requiring gojq''' |
'''Example requiring gojq''' |