Talk:Primes - allocate descendants to their ancestors: Difference between revisions

Line 120:
: Still, after studying the output from your C program, I see that each descendant is counted once for each ancestor that it is a descendant of. For example, 20 is a descendant of 8 and it is also a descendant of 9, so it gets counted twice when both 8 and 9 are considered as parents. So if I set MAXPRIME and MAXPARENT to 11, in your C program, it's rather clear that 20 would be counted for 2 (as opposed to being counted as 20 in the total, for example).
 
: Of course, I understand that can not be what you meant. But without considerable effort spent on your code, and some time in this discussion, I would not know what you had meant. It's worth spending some time addressing the ambiguities of interpretation which necessarily arise from the use of the english language (or any language which humans have developed for speaking with each other - but in this case we are using english). There are good biological reasons for these ambiguities, and it's relatively simple to address them. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 15:42, 2 March 2015 (UTC)
 
: Another difficulty is that in your implementation, for example, 8 is an ancestor of 26, but 26 is not a descendant of 8. Why is the reason for this not stated in the task description? --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 15:56, 2 March 2015 (UTC)
6,951

edits