236 views

1 Answer

0 votes
0 votes

Here, i stores the sum of all prime numbers from the start till the end. Let's denote that by 'P' ===> i = P

j stores stores the sum of all non-prime numbers from the start till the end. Let's denote that by 'NP' ===> j= -NP ==> NP = -j

k stores the sum of all Non-prime numbers minus prime numbers from the start till the end. Let's denote that by 'NP'-'P'

So, k = -j-i

Answer should be C)

edited by

No related questions found