5 / 5
Jun 2022

Accoing to Goldpach Conjecture, an even can be seperated into 2 primes, and others bigger than 2 can be seperated into 3.
So if the input is 1, output -1. If it is 2, output 1. If it is even other than 2, ouput 2.
For odd, if it is 2+prime, output 2, else output 3.

Is there anything I missed? Could anyone tell me why I got WA with above?

  • created

    Jun '22
  • last reply

    Jun '22
  • 4

    replies

  • 523

    views

  • 2

    users

  • 1

    like

There are another couple of small numbers that give -1.

No problem. Please could you remove your code? Otherwise there will be those who will copy’n’paste your near solution.