Jump to content

Disarium numbers: Difference between revisions

→‎J: 19 times as fast
imported>Maxima enthusiast
No edit summary
(→‎J: 19 times as fast)
Line 1,676:
 
=={{header|J}}==
<syntaxhighlight lang="j">digits=: 10 #".inv ]"0@":
disarium=: (= (+/ .@:^ #\)@digits)"0
 
I. disarium i.1e4 27e5
0 1 2 3 4 5 6 7 8 9 89 135 175 518 598 1306 1676 2427 2646798</syntaxhighlight>
 
=={{header|Java}}==
<syntaxhighlight lang="java">
559

edits

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