I'm working on modernizing Rosetta Code's infrastructure. Starting with communications. Please accept this time-limited open invite to RC's Slack.. --Michael Mol (talk) 20:59, 30 May 2020 (UTC)

Talk:Equal prime and composite sums

From Rosetta Code

1[edit]

Currently, some task implementations indicate 5 is a composite sum. However, the task description indicates that 4 is the first composite number.

So composite, for this task, probably does not mean "positive integer which is not prime" but instead presumably means "number which is a product of two or more primes". --Rdm (talk) 16:13, 5 March 2022 (UTC)

No entries claim 5 is a composite sum as far as I can see.
The F# and Julia entries I assume you are referring to are actually stating that 2+3+5 (3 primes) = 4+6 (2 composites) = 10, and were it me I might replace
Primes up to 5 at position 3 and composites up to 6 at position 2 sum to 10.
with (same info and same meaning)
The first 3 primes up to 5 and the first 2 composites up to 6 both sum to 10.
However the J output (10 2 1) implies 10 is the second element of P and first element of C but/or is presumably printing those as zero-based indexes, which is likely the source of confusion? --Pete Lomax (talk) 18:44, 5 March 2022 (UTC)
Oops. Yes. Thanks. --Rdm (talk) 19:51, 5 March 2022 (UTC)