Primes with digits in nondecreasing order: Difference between revisions
Primes with digits in nondecreasing order (view source)
Revision as of 02:51, 8 March 2022
, 2 years agoFrink
(Primes with digits in nondecreasing order in various BASIC dialents) |
(Frink) |
||
Line 610:
next i : print</lang>
{{out}}<pre>2 3 5 7 11 13 17 19 23 29 37 47 59 67 79 89 113 127 137 139 149 157 167 179 199 223 227 229 233 239 257 269 277 337 347 349 359 367 379 389 449 457 467 479 499 557 569 577 599 677</pre>
=={{header|Frink}}==
<lang frink>for n = primes[2,1000]
if sort[integerDigits[n]] == integerDigits[n]
print["$n "]</lang>
{{out}}
<pre>
2 3 5 7 11 13 17 19 23 29 37 47 59 67 79 89 113 127 137 139 149 157 167 179 199 223 227 229 233 239 257 269 277 337 347 349 359 367 379 389 449 457 467 479 499 557 569 577 599 677
</pre>
=={{header|Go}}==
|