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 22:12, 11 November 2023
, 6 months ago→Brute force: typo
(Added Algol W) |
m (→Brute force: typo) |
||
Line 1,048:
» '<span style="color:blue">PAL2416</span>' STO
« { 0 }
'''IF''' n <span style="color:blue">PAL2416</span> '''THEN''' n + '''END
2 '''STEP'''
» '<span style="color:blue">TASK</span>' STO
Runs in 1 hours 37 minutes on a HP-48SX.
====Much faster approach====
The task generates palindromes in base 16, which must then be verified as palindromes in the other two bases.
|