Numbers in base 10 that are palindromic in bases 2, 4, and 16: Difference between revisions
Numbers in base 10 that are palindromic in bases 2, 4, and 16 (view source)
Revision as of 23:12, 2 August 2022
, 1 year ago→{{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 *
0 1 3 5
</lang>
=={{header|Julia}}==
|