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

Content added Content deleted
(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 primes in bases 2, 4 and 16 #
# 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