Talk:Calmo numbers

From Rosetta Code
Revision as of 16:45, 22 March 2023 by Tigerofdarkness (talk | contribs) (→‎Edge cases: Don't think primes, 1 and 0 are Calmo Numbers)

Edge cases

Since 0 is divisible by 3, prime numbers (and 1) satisfy the current given constraints for "Calmo numbers". (In the sense that all of the resulting partial sums are prime.) --Rdm (talk) 16:24, 22 March 2023 (UTC)

The current definition of a Calmo number says the count of divisors (excluding 1 and the number itself) must be divisible by 3.
Further, these divisors must be split into groups of three and the sum of each group must be prime.
Primes and 1 have 0 divisors (excluding 1 and the number), so can't be Calmo numbers as the sum of the first three of their 0 divisors must surely be 0, which is not prime.
0 has an infinite number of divisors, the first three are 1, 2 and 3 the sum of which is 6 which is not prime, hence 0 is not a Calmo number.
--Tigerofdarkness (talk) 16:45, 22 March 2023 (UTC)