Carmichael 3 strong pseudoprimes: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: added whitespace to the REXX section header, added a comment to the output section. -- ~~~~) |
m (→{{header|REXX}}: changed a comment in the REXX section header. -- ~~~~) |
||
Line 476: | Line 476: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
Note that REXX's version of '''modulus''' ('''//''') is really a ''remainder'' function, |
Note that REXX's version of '''modulus''' ('''//''') is really a ''remainder'' function, |
||
<br>the '''modulus''' function was hard-coded below |
<br>so a version of the '''modulus''' function was hard-coded below. |
||
<br>(It was necessary to use '''modulus''' instead of '''remainder''' when using a negative value.) |
|||
===numbers in order of calculation=== |
===numbers in order of calculation=== |
||
<lang rexx>/*REXX program calculates Carmichael 3-strong pseudoprimes (up to N).*/ |
<lang rexx>/*REXX program calculates Carmichael 3-strong pseudoprimes (up to N).*/ |