Penta-power prime seeds: Difference between revisions
Content added Content deleted
m (→{{header|ALGOL 68}}: Added note about the heap size.) |
(→{{header|ALGOL 68}}: typo...) |
||
Line 28: | Line 28: | ||
{{libheader|ALGOL 68-primes}} |
{{libheader|ALGOL 68-primes}} |
||
NB: The source of the ALGOL 68-primes library is on a Rosetta Code code page linked from the above.<br> |
NB: The source of the ALGOL 68-primes library is on a Rosetta Code code page linked from the above.<br> |
||
Note that to run this with ALGOL 68G under Windows (and probably Linux) a large heap |
Note that to run this with ALGOL 68G under Windows (and probably Linux) a large heap size must be specified on the command line, e.g. <code>-heap 1024M</code>. |
||
<lang algol68>BEGIN # find some Penta power prime seeds, numbers n such that: # |
<lang algol68>BEGIN # find some Penta power prime seeds, numbers n such that: # |
||
# n^p + n + 1 is prime for p = 0. 1, 2, 3, 4 # |
# n^p + n + 1 is prime for p = 0. 1, 2, 3, 4 # |