Primes with digits in nondecreasing order: Difference between revisions
Primes with digits in nondecreasing order (view source)
Revision as of 16:21, 29 August 2021
, 2 years ago→{{header|ALGOL 68}}: Use ALGOL 68-primes
(Added Sidef) |
(→{{header|ALGOL 68}}: Use ALGOL 68-primes) |
||
Line 10:
INT max number = 1000;
# sieve the primes to max number #
PR read "primes.incl.a68" PR
# we can easily generate candidate numbers with a few nested loops #
INT p count := 0;
Line 61 ⟶ 54:
Found 50 non-descending primes up to 1000
</pre>
=={{header|APL}}==
{{works with|Dyalog APL}}
|