Erdös-Selfridge categorization of primes: Difference between revisions
Erdös-Selfridge categorization of primes (view source)
Revision as of 13:33, 16 April 2022
, 2 years ago→{{header|Raku}}: slightly more efficient
(Added Java solution) |
Thundergnat (talk | contribs) m (→{{header|Raku}}: slightly more efficient) |
||
Line 548:
my @factors = prime-factors $n + 1;
my $category = max %cat{ @factors };
unless %cat{ @factors
$category max= ( 1 + max %cat{ prime-factors 1 + @factors
%cat{ @factors
}
$category
|