CalmoSoft primes: Difference between revisions

Content added Content deleted
(Algol 68 Stretch sample - fix performance issues and optimise a little)
(Algol 68 stretch - notes)
Line 81: Line 81:
Uses Algol 68G's LONG LONG INT for the Millar Rabin test.
Uses Algol 68G's LONG LONG INT for the Millar Rabin test.
To run this with Algol 68G, you need <code>-heap 512M</code> on the command line.
To run this with Algol 68G, you need <code>-heap 512M</code> on the command line.
<br>Note the souirce of the <code>is probably prime</code> routine used here is available from a page in Rosetta Code - see the following link.
<br>Took about 20 seconds with Algol 68G on the Windows 11 system I'm using, around 30 seconds on TIO.RUN.
<br>Note Algol 68G is fully interpreted on Windows.
{{libheader|ALGOL 68-primes}}
{{libheader|ALGOL 68-primes}}
<syntaxhighlight lang="algol68">
<syntaxhighlight lang="algol68">