Jump to content

Summarize primes: Difference between revisions

m
→‎{{header|REXX}}: elided a comment.
(Added XPL0 example.)
m (→‎{{header|REXX}}: elided a comment.)
Line 1,035:
if j// 3==0 then iterate /*" " " 3? */
if j// 7==0 then iterate /*" " " 7? */
/* [↑] the above five lines saves time*/
do k=5 while s.k<=j /* [↓] divide by the known odd primes.*/
if j // @.k == 0 then iterate j /*Is J ÷ X? Then not prime. ___ */
Cookies help us deliver our services. By using our services, you agree to our use of cookies.