# Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!
New content is available in Academy! You may need to clear your browser cache for an optimal viewing experience

## Challenge #187: Generate Prime Numbers

Highlighted
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
Highlighted
Quasar

My solution:

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

Highlighted
Atom
Spoiler

First weekly challenge!

Highlighted
Alteryx Certified Partner
Spoiler

Highlighted
Comet

First challenge completed!

Spoiler
Highlighted
Meteor

Good fun! Solution is attached and available below

Spoiler

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

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.

Highlighted
Magnetar
Spoiler
Love a good math problem!

Highlighted
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