Numbers in base-16 representation that cannot be written with decimal digits: Difference between revisions

Added 11l
(Added 11l)
Line 4:
Find positive integers for which the base 16 (hexadecimal) representation does not contain any decimal digits '0'..'9', &nbsp; where &nbsp; '''n &nbsp; < &nbsp; 500<sub>10</sub>'''
<br><br>
 
=={{header|11l}}==
<lang 11l>L(n) 1..499
L(c) hex(n)
I c.is_digit()
L.break
L.was_no_break
print(n, end' ‘ ’)</lang>
 
{{out}}
<pre>
10 11 12 13 14 15 170 171 172 173 174 175 186 187 188 189 190 191 202 203 204 205 206 207 218 219 220 221 222 223 234 235 236 237 238 239 250 251 252 253 254 255 </pre>
 
=={{header|Action!}}==
1,481

edits