Jump to content

Nice primes: Difference between revisions

m (→‎{{header|REXX}}: simplified the code.)
Line 1,040:
/* HAVE A PRIME */
DECLARE DIGIT$SUM BYTE, V ADDRESS;
DIGIT$SUM = LOW( V := I );
DO WHILE( V > 9 );
DIGIT$SUM = 0;
Line 1,063:
END;
END;
EOF</lang>
</lang>
{{out}}
<pre>
3,044

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.