Concatenate two primes is also prime: Difference between revisions
Concatenate two primes is also prime (view source)
Revision as of 14:13, 29 August 2021
, 2 years ago→{{header|ALGOL 68}}: Use ALGOL 68-primes
(→{{header|Ruby}}: Add Ruby) |
(→{{header|ALGOL 68}}: Use ALGOL 68-primes) |
||
Line 10:
INT max prime = max low prime * max low prime;
# sieve the primes to max prime #
PR read "primes.incl.a68" PR
# construct a list of the primes up to the maximum low prime to consider #
[ 1 : max low prime ]INT low prime;
|