In the question PRMGM, many accepted solutions (such as this and this) fail for a simple test case. These solutions have ignored the prime numbers and yet managed to somehow get an AC verdict!
Or did I interpret the question incorrectly? Although a few accepted solutions like this one do give the opposite output. asked 28 Jan, 01:57

Yes, you are correct , i myself have analysed many solution which are not giving the answers as expected . Few of them are: 1.solution_1 Test Case:1 5 2 2 3 5 7 answered 28 Jan, 16:27
