Jump to content

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 # /* [↓] (downwardcompute all searchingpossible isUlam faster)sums.*/
do a=# by -1 for # /* [↑] compute all possible Ulam sums.*/
aa= @.a /*scalar var. is faster than a compound*/
do b=a-1 by -1 for a-1 /*compute sums from two Ulam numbers. */
Cookies help us deliver our services. By using our services, you agree to our use of cookies.