After Many Attempts it is TLE again and again ,Please Help!

in the Challenge Section of Array ,the Problem Prime Visit ,
my code “https://ide.codingblocks.com/s/75412” is giving TLE Please help.

Ayush, try using prime sieve in your code to determine if a no is prime or not, rather than using a native approach since it will give TLE.