Show the (decimal) value of a number of 1s appended with a 3, then squared: Difference between revisions

→‎J: faster and more memory efficient
No edit summary
(→‎J: faster and more memory efficient)
Line 573:
 
=={{header|J}}==
<syntaxhighlight lang=J"j"> (,. *:) (29 +%~ 1017 #.+ 1x10x #~^ >:)"0 i. 8
 
<syntaxhighlight lang=J> (,.*:)(2 + 10 #. 1x #~ >:)"0 i.8
3 9
13 169
Line 582 ⟶ 581:
111113 12346098769
1111113 1234572098769
11111113 123456832098769</syntaxhighlight>
</syntaxhighlight>
 
=={{header|jq}}==
559

edits