Primes which contain only one odd digit: Difference between revisions
Primes which contain only one odd digit (view source)
Revision as of 13:58, 29 August 2021
, 2 years ago→{{header|ALGOL 68}}: Use Algol 68-primes
(→{{header|ALGOL 68}}: Use Algol 68-primes) |
|||
Line 10:
=={{header|ALGOL 68}}==
{{libheader|ALGOL 68-primes}}
<lang algol68>BEGIN # find primes whose decimal representation contains only one odd digit #
[]BOOL
# show a count of primes #
PROC show total = ( INT count, INT limit, STRING name )VOID:
Line 62 ⟶ 57:
Found 2560 single-odd-digit primes upto 1000000
</pre>
=={{header|AWK}}==
<lang AWK>
|