Numbers in base 10 that are palindromic in bases 2, 4, and 16: Difference between revisions
Content added Content deleted
SqrtNegInf (talk | contribs) (Added Perl) |
m (→{{header|ALGOL 68}}: Remove spurious "primes" from a comment) |
||
Line 46: | Line 46: | ||
is palindromic |
is palindromic |
||
END; |
END; |
||
# print the numbers in decimal that are palendromic |
# print the numbers in decimal that are palendromic in bases 2, 4 and 16 # |
||
FOR n FROM 0 TO max number DO |
FOR n FROM 0 TO max number DO |
||
IF PALINDROMIC ( n DIGITS 16 ) THEN |
IF PALINDROMIC ( n DIGITS 16 ) THEN |