Erdös-Selfridge categorization of primes: Difference between revisions

Content added Content deleted
m (→‎{{header|Raku}}: slightly more efficient)
(Full task)
Line 1: Line 1:
{{draft task}}
{{task}}


A prime p is in category 1 if the prime factors of p+1 are 2 and or 3. p is in category 2 if all the prime factors of p+1 are in category 1. p is in category g if all the prime factors of p+1 are in categories 1 to g-1.
A prime p is in category 1 if the prime factors of p+1 are 2 and or 3. p is in category 2 if all the prime factors of p+1 are in category 1. p is in category g if all the prime factors of p+1 are in categories 1 to g-1.