Back to the Problem
Trial-divide candidates by the primes found so far, up to the square root.
Complexity: small