Twin primes: Difference between revisions

Content added Content deleted
Line 26: Line 26:
=={{header|ALGOL 68}}==
=={{header|ALGOL 68}}==
{{works with|ALGOL 68G|Any - tested with release 2.8.3.win32}}
{{works with|ALGOL 68G|Any - tested with release 2.8.3.win32}}
Simplifies array bound checking by using the euivalent definition of twin primes: p and p - 2.
Simplifies array bound checking by using the equivalent definition of twin primes: p and p - 2.
<lang algol68>BEGIN
<lang algol68>BEGIN
# count twin primes (where p and p - 2 are prime) #
# count twin primes (where p and p - 2 are prime) #