Successive prime differences: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: added a missing statement.)
m (→‎{{header|REXX}}: elided some dead code.)
Line 1,155: Line 1,155:
do e=4 by 2 for (N-1)%2; @.e=; end /*treat the even integers > 2 special.*/
do e=4 by 2 for (N-1)%2; @.e=; end /*treat the even integers > 2 special.*/
/*all primes are indicated with a "." */
/*all primes are indicated with a "." */
do j=1 by 2 for (N-1)%2; k= j /*use odd integers up to N inclusive.*/
do j=1 by 2 for (N-1)%2 /*use odd integers up to N inclusive.*/
if @.j==. then do; if ! then iterate /*Prime? Should skip the top part ? */
if @.j==. then do; if ! then iterate /*Prime? Should skip the top part ? */
jj= j * j /*compute the square of J. ___ */
jj= j * j /*compute the square of J. ___ */