Magic numbers: Difference between revisions
Content added Content deleted
(J) |
m (→{{header|J}}) |
||
Line 403: | Line 403: | ||
Task: |
Task: |
||
<syntaxhighlight lang=J> #pdivs |
<syntaxhighlight lang=J> #pdivs NB. quantity of these "magic' numbers" |
||
20457 |
20457 |
||
>./pdivs NB. largest of these "magic numbers" |
|||
>./pdivs |
|||
3608528850368400786036725 |
3608528850368400786036725 |
||
(~.,. #/.~) #@":@> pdivs |
(~.,. #/.~) #@":@> pdivs NB. tallies by digit count |
||
1 10 |
1 10 |
||
2 45 |
2 45 |