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
8 - Asteroid

Here is my very un-mathematical solution.  works up to 1000, but would probably blow up a computer if ran for a large number.

Spoiler
challenge_187_PD spoiler.JPG
Highlighted
12 - Quasar

My solution:

 

Spoiler
Haha, my CLUNKY solution. I really enjoyed seeing other (MORE EFFICIENT!) solutions to this challenge.

Capture.JPG

Highlighted
5 - Atom
Spoiler
Declanh94_0-1572542698415.png

First weekly challenge!

Highlighted
Alteryx Certified Partner
Spoiler
187a.PNG
187macro.PNG


 

Highlighted
9 - Comet

First challenge completed!

 

Spoiler
weekly challenge 187 solution.png
Highlighted
7 - Meteor

Good fun! Solution is attached and available below

 

Spoiler
Chalenge 187 Solution.png

 

Highlighted
5 - Atom

A little of a mess with the flags & logic in the formula tool, but surprisingly easy!

 

I've never used the generate Rows before - thought it would be better to use it in a batch macro - but the duplicated Append Fields method is much easier.

Highlighted
6 - Meteoroid

I tried two different versions - Brute force and using the method 'Sieve Of Eratosthenes'

The first one crashed around 100,000 records while the second can output results for 10M of records in 1 minute.

 

GGard_0-1572605207247.png

Highlighted
14 - Magnetar
14 - Magnetar
Spoiler
Love a good math problem!
Capture.PNG

Highlighted
6 - Meteoroid

My attempt. Couldn't think how to tackle this easily using Alteryx tools, so had a go using the Python tool. Getting a strange error though regarding metadata, but outputs the answer.

Spoiler
jcktwnsnd_0-1572612555831.png