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 11:38, 6 January 2024
, 5 months ago→{{header|Wren}}: Minor tidy
(→Much faster approach: cleaned the code) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 1,223:
=={{header|Wren}}==
{{libheader|Wren-fmt}}
▲<syntaxhighlight lang="ecmascript">import "/fmt" for Conv, Fmt
System.print("Numbers under 25,000 in base 10 which are palindromic in bases 2, 4 and 16:")
Line 1,239 ⟶ 1,237:
}
}
System.print("\nFound %(numbers.count) such numbers.")</syntaxhighlight>
|