Positive decimal integers with the digit 1 occurring exactly twice: Difference between revisions
Positive decimal integers with the digit 1 occurring exactly twice (view source)
Revision as of 14:53, 9 November 2023
, 7 months ago→{{header|Euler}}: Sybntax highlight with Mediawiki markup
m (→{{header|RPL}}: optimized code) |
(→{{header|Euler}}: Sybntax highlight with Mediawiki markup) |
||
Line 173:
=={{header|Euler}}==
As with the Arturo, F# etc. samples, generates the sequence but doesn't sort it into order.
'''begin''' '''new''' dPos; '''new''' non1digits; '''label''' digitLoop;
▲digitLoop: if [ dPos <- dPos + 1 ] <= length non1digits then begin
'''out''' [ d
'''end''' '''else'''
'''end''' $▼
▲end $
{{out}}
<pre>
|