Prime visits in array part

https://ide.codingblocks.com/s/169459 why this on test case is not passed?

@guptaaman155 The naive approach for generating the prime numbers will fail for large test cases in this problem. You have to try it using Sieve of Eratosthenes whose lecture videos are available in the Number Theory section of your course. Try this problem after referring that.