Carmichael 3 strong pseudoprimes: Difference between revisions
Content added Content deleted
m (→vertical list: changed the format of the output.) |
m (fixed version headers for REXX.) |
||
Line 1,184: | Line 1,184: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
==vertical list== |
===vertical list=== |
||
Note that REXX's version of '''modulus''' (<big><code>'''//'''</code></big>) is really a ''remainder'' function. |
Note that REXX's version of '''modulus''' (<big><code>'''//'''</code></big>) is really a ''remainder'' function. |
||
Line 1,315: | Line 1,315: | ||
</pre> |
</pre> |
||
==horizontal list== |
===horizontal list=== |
||
This REXX version (pre-)generates a number of primes to assist the '''isPrime''' function. |
This REXX version (pre-)generates a number of primes to assist the '''isPrime''' function. |
||
<lang rexx>/*REXX program calculates Carmichael 3─strong pseudoprimes (up to and including N). */ |
<lang rexx>/*REXX program calculates Carmichael 3─strong pseudoprimes (up to and including N). */ |