Anonymous user
Primality by trial division: Difference between revisions
m
→compact version: changed wording in the REXX section header.
m (→compact version: added an overbar to the radical.) |
m (→compact version: changed wording in the REXX section header.) |
||
Line 2,267:
Programming note: all the REXX programs below show all primes up and including the number specified.
<lang rexx>/*REXX program tests for primality by using (kinda smartish) trial division. */
parse arg n .; if n=='' then n=10000 /*let the user choose the upper limit. */
|