How to Override a private set property?

The set {3,5 , 9, 29 } has the property that the sum of any three of its?

  • Answer:

    If we check their remainder with 3, we have five numbers from the set: {0, 1, 2}. If there are three of a kind: their sum is divisible by three(thus not prime)(can't be 3, because it would be 1+1+1, which are not distinct). If there aren't three of a kind: there is at least one from each kind: we pick these(one from each):(0+1+2) this is divisible by three, and can't be 3: thus not prime.

Gorg N at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

If we check their remainder with 3, we have five numbers from the set: {0, 1, 2}. If there are three of a kind: their sum is divisible by three(thus not prime)(can't be 3, because it would be 1+1+1, which are not distinct). If there aren't three of a kind: there is at least one from each kind: we pick these(one from each):(0+1+2) this is divisible by three, and can't be 3: thus not prime.

Peter

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.