Numbers in base 10 that are palindromic in bases 2, 4, and 16: Difference between revisions

→‎{{header|J}}: base 4, not base 8
(→‎{{header|J}}: I guess this task is looking for numbers which are palindromes in all three bases...)
(→‎{{header|J}}: base 4, not base 8)
Line 464:
=={{header|J}}==
<lang J> palinbase=: (-: |.)@(#.inv)"0
I. (2&palinbase * 84&palinbase * 16&palinbase) i.25e3
0 1 3 5 715 917 395151 85 255 257 273 771 819 1285 1365 3855 4095 4097 4369 12291 13107 20485 21845</lang>
</lang>
 
=={{header|Julia}}==
6,962

edits