Why is it showing TLE?

hello @vipulch

why u r preparing sieve only upto 5?

find the value of 500 000th prime number and prepare ur sieve atleast upto that.

ohh i was testing something

in your solution, was there any reason you took the specific number 7368788??

that value is 1 more than 50 000 th prime number