Largest difference between adjacent primes: Difference between revisions
Content added Content deleted
(Added XPL0 example.) |
(→{{header|ALGOL 68}}: Typos) |
||
Line 7: | Line 7: | ||
=={{header|ALGOL 68}}== |
=={{header|ALGOL 68}}== |
||
Note, to run this with Algol 68G, the command line option <code>--heap 256M</code> |
Note, to run this with Algol 68G, the command line option <code>--heap 256M</code> should be specified to allow a larger heap size.<br> |
||
As with the Wren, Phix, etc. samples, shows the gaps |
As with the Wren, Phix, etc. samples, shows the gaps at a few other places. |
||
{{libheader|ALGOL 68-primes}} |
{{libheader|ALGOL 68-primes}} |
||
<lang algol68>BEGIN # find the largest gap between adjacent primes up to 10 000 000 # |
<lang algol68>BEGIN # find the largest gap between adjacent primes up to 10 000 000 # |