Achilles numbers: Difference between revisions
Content added Content deleted
(J: add some comments) |
m (→{{header|J}}) |
||
Line 79:
Explanation of the code:
<tt>(1{__&q:)</tt> is a function which returns the non-zero
<tt>+./</tt> returns the greatest common divisor of a list, and <tt>1=+./</tt> is true if that gcd is 1 (0 if it's false).
<tt>*/ .>&1</tt> is true if all the values in a list are greater than 1 (0 if not).
|