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

m
(Added Algol W)
Line 1,048:
» '<span style="color:blue">PAL2416</span>' STO
« { 0 }
01 25000 '''FOR''' n
'''IF''' n <span style="color:blue">PAL2416</span> '''THEN''' n + '''END NEXT'''
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.
1,150

edits