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!
1
2
2 3
Or did I interpret the question incorrectly? Although a few accepted solutions like this one do give the opposite output.