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 20:06, 10 June 2024
, 9 days agoAdded Uiua solution
(Added Uiua solution) |
|||
Line 1,239:
<pre>
[0, 1, 3, 5, 15, 17, 51, 85, 255, 257, 273, 771, 819, 1285, 1365, 3855, 4095, 4097, 4369, 12291, 13107, 20485, 21845]
</pre>
=={{header|Uiua}}==
<syntaxhighlight lang="uiua">
Pal ← /↧≡(≍⇌.⬚0↯⊟∞)[4 2 1] ¤⋯
▽≡Pal .⇡25000
</syntaxhighlight>
{{out}}
<pre>
[0 1 3 5 15 17 51 85 255 257 273 771 819 1285 1365 3855 4095 4097 4369 12291 13107 20485 21845]
</pre>
|