Tau number: Difference between revisions
m
→{{header|J}}
(J: clean up the code, and add a bit of explanation) |
m (→{{header|J}}) |
||
Line 1,048:
Explanation: _ q: produces a list of the exponents of the prime factors of a number. The product of 1 + this list is the number of positive factors of that number. We have a tau number if the remainder of the number divided by that factor count is zero.
In the task example, we generate a list of the first 2000 positive integers and then use an expression of the form (#~ test) which filters a list of numbers based on that test. When then extract the first 100 of these in a 4 row 25 column table.
Task example:
|