Twin primes: Difference between revisions

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

edits