Hi,
I was trying to solve the VECTAR8 - Primal Fear problem. It seemed pretty easy, I precalculated all prime numbers that satisfy the conditions of the problem from 1 to 1000000 and put them into a vector, so I only have to count the numbers not greater than given N. I don’ think I missed any “scary primes”, so I have no idea why I’m getting WAs.
Here’s the code with numbers precalculated:
Code was here
I have no idea what’s wrong. Did I miss a number?