Strong and weak primes: Difference between revisions

Content added Content deleted
(Added Algol 68)
Line 73: Line 73:
INT max number = 10 000 000;
INT max number = 10 000 000;
# construct a sieve of primes up to slightly more than the maximum number #
# construct a sieve of primes up to slightly more than the maximum number #
# required for the task, as we need an extra prime for the classification #
# required for the task, as we may need an extra prime for the classification #
[ 1 : max number + 1 000 ]CHAR primes;
[ 1 : max number + 1 000 ]CHAR primes;
sieve( primes );
sieve( primes );