Primes: n*2^m+1: Difference between revisions

Content added Content deleted
(→‎{{header|ALGOL 68}}: Specifically state that the hard stretch goal is not satisfied.)
Line 19: Line 19:
{{works with|ALGOL 68G|Any - Tested with release 3.0.3 under Windows}}
{{works with|ALGOL 68G|Any - Tested with release 3.0.3 under Windows}}
{{libheader|ALGOL 68-primes}}
{{libheader|ALGOL 68-primes}}
Doesn't attempt the stretchier stretch goal but does show the primes up to 400 with uo to 2000 digits and m at most 600 which turns out to be all of them except for 383.<br>
Doesn't attempt the stretchier stretch goal but does show the primes up to 400 with up to 2000 digits and m at most 600 which turns out to be all of them except for 383.<br>
The values of the primes are interesting - most will fit in 64 bits but there are a small number that have hundreds or thousands of digits. <br>
The values of the primes are interesting - most will fit in 64 bits but there are a small number that have hundreds or thousands of digits. <br>
<b>NB</b> the primes.incl.a68 source is available on a page in Rosetta Code - see the <b>library</b> above.
<b>NB</b> the primes.incl.a68 source is available on a page in Rosetta Code - see the <b>library</b> above.