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.
Today's the day! - The Alteryx Community will be temporarily unavailable for a few hours due to implementation of the new SSO experience starting at 5pm MDT. Please plan accordingly. For more information, read the blog.
alteryx Community

Weekly Challenge

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

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

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

Submit Feedback

Challenge #187: Generate Prime Numbers

10 - Fireball

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

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.
7 - Meteor

My Solution attached

Spoiler
13 - Pulsar

Here is my solution

Spoiler
5 - Atom

Here's my solution:

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

8 - Asteroid

8 - Asteroid

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

Regards,

Dane.

8 - Asteroid

Here is my solution

17 - Castor

I went for the brute force method...

8 - Asteroid

my solution