Hi, I was solving POP1 but can't get it to pass under the time limit.
Things I've tried.
- For detecting pop numbers, I simply brute force.
- For checking primes, I maintain an array of primes till 2e7 and after that apply Miller-Rabbin.
Here is my code.