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

Full task
m (→‎{{header|Raku}}: slightly more efficient)
(Full task)
Line 1:
{{draft 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.
2,172

edits