Solved thanks
This doesn't return the correct answer for the sample input. You are excluding all multiples of the primes, including the prime itself!
Ah yes, thank you I realised where I botched it
Please edit your posts and remove your spoilers and code.