Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Weekly Challenges

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

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

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #187: Generate Prime Numbers

Jonathan-Sherman
15 - Aurora
15 - Aurora

Challenge 187 is completed!

 

Spoiler
image.png
Reesetrain2
9 - Comet
9 - Comet

All,

 

Spoiler
First, I went to:
https://www.factmonster.com/math-science/mathematics/prime-numbers-facts-examples-table-of-all-up-to...

In order to get the "Rules," for Prime Numbers.
Then I used the Get Rows Tool in order to get the first 50 numbers.
Then I used the Mod function in filters in order to use the "rules" and then I added the primes back in to get the 15 Prime numbers in the first 50.
-Cheers!
Capture.PNG

-Cheers!

 

Matt

Lavanya_kommuri
6 - Meteoroid

My Solution

aveloudi
7 - Meteor

Hi community! This was my approach -- 

chris_ramsay_dup_425
8 - Asteroid

Here's my solution.

Thanks,

Chris

tiffany_chen
8 - Asteroid

This is an interesting challenge which I learn something new about prime number and the tool 'Generate Rows'. The tool could be used to solve Loop problem. And in this case, I have used it to generate number 1-50 and 2-sqrt of each number.

Spoiler
2019-11-15_220118.png
 

 

pawel_zych
7 - Meteor

Hello,

I'm sending my solution to the challenge #187. Thanks.

Vidya26
8 - Asteroid

My Solution!!!

Benbryans
8 - Asteroid
 
SeanAdams
17 - Castor
17 - Castor

Bit of a brute force solution - but it works 🙂

 

Spoiler

Solution.png