Anonymous user
Ulam numbers: Difference between revisions
m
→{{header|REXX}}: changed a couple of comments.
(→{{header|Phix}}: added some timing comparisons) |
m (→{{header|REXX}}: changed a couple of comments.) |
||
Line 219:
do j=3; !.=; low= @.# /*search for numbers in this range. */
mx= 0 /*define the maximum sum (so far). */
do a=# by -1 for
aa= @.a /*scalar var. is faster than a compound*/
do b=a-1 by -1 for a-1 /*compute sums from two Ulam numbers. */
|