Special neighbor primes: Difference between revisions
Content added Content deleted
m (→{{header|ALGOL 68}}: Avoid line-wrap) |
m (→{{header|ALGOL 68}}: Added link to the Neighbour primes task) |
||
Line 94: | Line 94: | ||
=={{header|ALGOL 68}}== |
=={{header|ALGOL 68}}== |
||
{{libheader|ALGOL 68-primes}} |
{{libheader|ALGOL 68-primes}} |
||
Very similar to [[Neighbour_primes#ALGOL_68|The ALGOL 68 sample in the Neighbour primes task]] |
|||
<syntaxhighlight lang="algol68">BEGIN # find adjacent primes p1, p2 such that p1 + p2 - 1 is also prime # |
<syntaxhighlight lang="algol68">BEGIN # find adjacent primes p1, p2 such that p1 + p2 - 1 is also prime # |
||
PR read "primes.incl.a68" PR |
PR read "primes.incl.a68" PR |