Prime Visits: time limit error

@sanya2508
As you can see , the constraints mentioned in this problem are high and thus you need to use an optimised method to solve this problem. This problem can be solved using Sieve technique which has been discussed in detail in the Number Theory section of your course. Kindly refer to it and use it to solve this problem.

1 Like