Jump to content

Carmichael 3 strong pseudoprimes: Difference between revisions

m
→‎{{header|REXX}}: added whitespace to the REXX section header, added a comment to the output section. -- ~~~~
(→‎Tcl: Added implementation)
m (→‎{{header|REXX}}: added whitespace to the REXX section header, added a comment to the output section. -- ~~~~)
Line 476:
 
=={{header|REXX}}==
Note that REXX's version of   '''modulus'''   ('''//''')   is really a   ''remainder''   function, so a version of
<br>the &nbsp; '''modulus''' &nbsp; function was hard-coded below (it was necessary to use '''modulus''' instead of '''remainder''' when using a negative value).
===numbers in order of calculation===
<lang rexx>/*REXX program calculates Carmichael 3-strong pseudoprimes (up to N).*/
Line 517:
!.x=1; return 1</lang>
'''output''' when using the default input
<br><br>The Carmichael numbers were grouped by the first Carmichael number.
<pre style="height:30ex50ex;overflow:scroll">
──────── a Carmichael number: 3 ∙ 11 ∙ 17
 
Line 651 ⟶ 652:
!.x=1; return 1</lang>
'''output''' when using the default input
<pre style="height:30ex50ex;overflow:scroll">
──────── a Carmichael number: 3 ∙ 11 ∙ 17
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.