Anaprimes: Difference between revisions
m
→{{header|J}}: quicky documentation
(J) |
m (→{{header|J}}: quicky documentation) |
||
Line 233:
big=: \: +/@>
largest=: 0 {:: big</syntaxhighlight>
Here, <code>dgt</code> gives use the base 10 digits of a number, <code>dgrp</code> groups numbers which contain the same digits, <code>pgrp<code> groups all primes of a given digit count by their digits, <code>big</code> sorts groups of numbers in descending order by their sum and <code>largest</code> extracts a group of numbers with the largest sum.
With these definitions, the count, min and max of prime groups with various (base 10) digit lengths are:
|