# Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!
###### IDEAS WANTED

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback
We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.

## Challenge #187: Generate Prime Numbers

Highlighted
Alteryx Partner

Looks 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)

Spoiler

Highlighted
7 - Meteor
Spoiler
Assuming the prime numbers divided by 2 and divided by 3 would result in a decimal for both answers, I used the formula tool and Filter to check for these scenarios with the understanding 2 and 3 are the exceptions to the rule.
Highlighted
7 - Meteor

My Solution attached

Spoiler
Highlighted
13 - Pulsar

Here is my solution

Spoiler
Highlighted
5 - Atom

Here's my solution:

This works well for any set of numbers. The range should be written in the text input.

Highlighted
8 - Asteroid

Highlighted
8 - Asteroid

Very basic attempt at it but it seems to work nicely enough.

Regards,

Dane.

Highlighted
8 - Asteroid

Here is my solution

Highlighted
Alteryx Certified Partner

I went for the brute force method...

Highlighted
8 - Asteroid

my solution