Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

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 #79: Find the Closest Prime Number

FrederikE
13 - Pulsar
Spoiler
FrederikE_0-1669542962234.png

 

SkomantasTamulaitis
8 - Asteroid

Here's my solution.

Spoiler
Screenshot 2022-12-16 145102.png
karlhansen
9 - Comet
Spoiler
solution_79.jpg

This solution considers primes greater than the number.  Oh -- and "sum factors" should be "count factors".

 

Again, I did not build an app.  I will go do it, but I will not show it here.  This flow logic remains intact, even with an app. 

BS_THE_ANALYST
14 - Magnetar

Fun challenge. First time I've used iterative macros within macros. Also, within the iterative macro there was a macro. Certainly not the cleanest, strung together method. But it was great fun whilst learning macros. If a number has primes of equal distance above and below it. It will find both. 

BS_THE_ANALYST_0-1674675314518.png

 

kristiadiuisan
8 - Asteroid
Spoiler
Alteryx_challenge_79_KU.png
leonhekkert
8 - Asteroid

That took me very long. But proud that I got there :)

 

 

Spoiler
Outer workflow.png

Iteration of numbers to test.png

Iteration of prime test.png

 

 

ckelley0
8 - Asteroid

I went a different route. This is my first iterative Macro :)

Spoiler
spoiler alert
StarScream2.PNG
alacoume
8 - Asteroid

At this stage, i find more useful to code in R than in Altéryx!

Spoiler
Challenge_79.jpg

Flo_P
9 - Comet
Spoiler
Didn't feel like making an app, but instead built it in Python and learned how to use the corresponding tool.
Flo_P_0-1677502438226.png

 

Ladarthure
14 - Magnetar
14 - Magnetar

my solution