CalmoSoft primes: Difference between revisions
Content added Content deleted
(→{{header|ALGOL 68}}: Stretch) |
(Algol 68 stretch - corrected comment) |
||
Line 80: | Line 80: | ||
<br>Note, Algol 68G under Windows is fully interpreted, this took around 20 seconds on the Windows 11 system. Transpiled to VB.NET with an experimental/WIP/toy transpiler, it runs in around 2 seconds. |
<br>Note, Algol 68G under Windows is fully interpreted, this took around 20 seconds on the Windows 11 system. Transpiled to VB.NET with an experimental/WIP/toy transpiler, it runs in around 2 seconds. |
||
<syntaxhighlight lang="algol68"> |
<syntaxhighlight lang="algol68"> |
||
BEGIN # find the longest sequence of primes < |
BEGIN # find the longest sequence of primes < 50 000 000 that sums to a prime# |
||
# called Calmosoft primes # |
# called Calmosoft primes # |
||
# returns TRUE if n is prime, FALSE otherwise - uses trial division # |
# returns TRUE if n is prime, FALSE otherwise - uses trial division # |