Primality by trial division: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: added/changed comments and whitespace, changed indentations, optimized the 3rd version's function.) |
m (→compact version: added an overbar to the radical.) |
||
Line 2,264: | Line 2,264: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
===compact version=== |
===compact version=== |
||
This version uses a technique which increments by six for testing primality (up to the |
This version uses a technique which increments by six for testing primality (up to the √{{overline| n }}). |
||
Programming note: all the REXX programs below show all primes up and including the number specified. |
Programming note: all the REXX programs below show all primes up and including the number specified. |