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 &nbsp; '''modulus''' &nbsp; (<big><code>'''//'''</code></big>) &nbsp; is really a &nbsp; ''remainder'' &nbsp; function.
Note that REXX's version of &nbsp; '''modulus''' &nbsp; (<big><code>'''//'''</code></big>) &nbsp; is really a &nbsp; ''remainder'' &nbsp; 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 &nbsp; '''isPrime''' &nbsp; function.
This REXX version (pre-)generates a number of primes to assist the &nbsp; '''isPrime''' &nbsp; 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). */