Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEALooks like my initial inclination to run through all possible combinations was virtually identical to many of the previous entries. This is the naïve and most obvious approach.
For fun, I ran the workflow for larger values of N to see how long it took:
N = 1000 - 2.1 seconds (168 primes)
N = 10,000 - 79 seconds (1,229 primes)
My Solution attached