Jio interview question

Explain the logic to build the code for sum.of prime numbers to be something?