[Solved] The result of my code is zero and I don’t know why
I found 2 mistakes – Your answer is coming to be 0 always because in the array [4,7,8,9] 9 is the largest biggest non prime number and there is no prime number greater than 9 in your array. if the input array is [4,7,8,9,11] the output is 11 as 11 is smallest prime number greater … Read more